Ubayy bin Kaab reported,

The Messenger of Allah ﷺ said, "So they set off, and they found a wall on the verge of collapse." Saeed gestured with his hand like this and raised his hands, and it became upright. Yala said, "I think Saeed said, 'He wiped it with his hand, and it became upright.'" "If you had wished, you could have taken payment for it" [Kahf 18:77]. Saeed said, "Payment we could eat with."

Bukhari 2267

Sahih

حدثنا إبراهيم بن موسى أخبرنا هشام بن يوسف أن ابن جريج أخبرهم قال أخبرني يعلى بن مسلم وعمرو بن دينار عن سعيد بن جبير يزيد أحدهما على صاحبه وغيرهما قال قد سمعته يحدثه عن سعيد قال قال لي ابن عباس رضي الله عنهما حدثني

أبي بن كعب قال

قال رسول الله ﷺ فانطلقا فوجدا جدارا يريد أن ينقض قال سعيد بيده هكذا ورفع يديه فاستقام قال يعلى حسبت أن سعيدا قال فمسحه بيده فاستقام {لو شئت لاتخذت عليه أجرا} قال سعيد أجرا نأكله

البخاري 2267صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Leasing
Chapter
If one hires a worker to prop up a wall about to collapse, it is permissible
Numbering
Darussalam 2267
Bukhari 2267