Anas bin Malik reported,

The Prophet ﷺ gave orders for the mosque to be built and said, "Children of Najjar, name me a price for this orchard of yours."They replied, "No, by Allah, we seek its price from none but Allah."

Bukhari 2771

Sahih

حدثنا مسدد حدثنا عبد الوارث عن أبي التياح

عن أنس رضي الله عنه قال

أمر النبي ﷺ ببناء المسجد فقال يا بني النجار ثامنوني بحائطكم هذا قالوا لا والله لا نطلب ثمنه إلا إلى الله

البخاري 2771صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Bequests
Chapter
If a group endows undivided land in common, it is permissible
Numbering
Darussalam 2771
Bukhari 2771