مِشْكَاةُ الْمَصَابِيحِ
Mishkat al-Masabih 3510
Retaliation
Offences for which no Responsibility is Incurred - Section 1
عَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «الْعَجْمَاءُ جَرْحُهَا جُبَارٌ وَالْمَعْدِنُ جُبَارٌ وَالْبِئْرُ جُبَارٌ»
Abu Huraira reported God’s Messenger as saying, “No retaliation is payable for a wound caused by a dumb animal, for a mine, or for a well.”* (Bukhari and Muslim.) * A longer form is given on p. 380. The reference is said to be an animal which is not at the time under anyone's charge. No responsibility attaches to anyone who has dug a mine or a well in a place where he is entitled to do so if someone falls in.
Mishkat al-Masabih, 3510مُتَّفَقٌ عَلَيْهِ (الألباني)