“The Messenger of Allah (ﷺ) ruled that there is no liability for injuries caused by falling into a mines or a well, nor those caused by a beast.”
Sunan Ibn Majah Book 21, Hadith 61