(30) باب وَقْفِ الأَرْضِ لِلْمَسْجِدِ
Narrated Anas bin Malik:
When Allah's Messenger (ﷺ) came to Medina, he ordered that a mosque be built. He said, "O Bani An- Najjar! Suggest me a price for the garden of yours." They replied, "By Allah, we will not ask its price except from Allah."
Reference: Sahih al-Bukhari 2774
In-book reference: Book 55, Hadith 37
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 4, Book 51, Hadith 35