The Messenger of Allah ﷺ said, "Injury caused by a grazing animal carries no liability, a well carries no liability, and a mine carries no liability, but on buried treasure a fifth is due."
وبإسناده قال قال رسول الله ﷺ العجماء جبار والبئر جبار والمعدن جبار وفي الركاز الخمس