Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Injuries caused by livestock are not compensable, falling into a well carries no liability, accidents in mines carry no liability, and on buried treasure a fifth is due."Qutayba narrated to us, Layth narrated to us, from Ibn Shihab, from Saeed bin Musayab and Abu Salama, from Abu Hurairah, from the Prophet ﷺ, something similar.

Tirmidhi 1378

Sahih

حدثنا أحمد بن منيع حدثنا سفيان عن الزهري عن سعيد بن المسيب

عن أبي هريرة قال

قال رسول الله ﷺ العجماء جرحها جبار والبئر جبار والمعدن جبار وفي الركاز الخمس حدثنا قتيبة حدثنا الليث عن ابن شهاب عن سعيد بن المسيب وأبي سلمة عن أبي هريرة عن النبي ﷺ نحوه

الترمذي 1378صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Rulings
Chapter
Reviving barren land
Numbering
Darussalam 1378
Tirmidhi 1378