Translation
(55) Wills and Testaments (Wasaayaa)
كتاب الوصايا
(34) Chapter: To say: "We will demand its price, from none but Allah."
(34) باب إِذَا قَالَ الْوَاقِفُ لاَ نَطْلُبُ ثَمَنَهُ إِلاَّ إِلَى اللَّهِ فَهْوَ جَائِزٌ
Sahih al-Bukhari 2779 

Narrated Anas:

The Prophet (ﷺ) said (at the time of building the Mosque), "O Ban, An-Najjar! Suggest to me a price for your garden." They replied, "We do not ask its price except from Allah."

حَدَّثَنَا مُسَدَّدٌ، حَدَّثَنَا عَبْدُ الْوَارِثِ، عَنْ أَبِي التَّيَّاحِ، عَنْ أَنَسٍ ـ رضى الله عنه ـ قَالَ النَّبِيُّ صلى الله عليه وسلم ‏ "‏ يَا بَنِي النَّجَّارِ ثَامِنُونِي بِحَائِطِكُمْ ‏"‏‏.‏ قَالُوا لاَ نَطْلُبُ ثَمَنَهُ إِلاَّ إِلَى اللَّهِ‏.‏
Reference : Sahih al-Bukhari 2779
In-book reference : Book 55, Hadith 42
USC-MSA web (English) reference : Vol. 4, Book 51, Hadith 39
  (deprecated numbering scheme)