BAYHAQI 19654:
from Nabī Allāh ﷺ —
[Machine] If one of you comes upon an animal, and it has its owner with it, then let him ask permission from the owner. If he gives him permission, then let him take its milk and drink it. And if it does not have an owner, then let him call out three times. If it responds to him, then let him ask permission from it. And if it does not respond, then let him take its milk and drink it. And do not carry it. Al-Sheikh said: The narrations from Al-Hasan regarding Samurah, some of the huffaz do not consider them reliable. And it is claimed that it is from a book other than the Hadith of Al-Aqiqah, which mentions hearing. And if it is authentic, then it is applied in case of necessity.
البيهقي ١٩٦٥٤:
عن نبي الاه ﷺ —
إِذَا أَتَى أَحَدُكُمْ عَلَى مَاشِيَةٍ فَإِنْ كَانَ فِيهَا صَاحِبُهَا فَلْيَسْتَأْذِنْهُ فَإِنْ أَذِنَ لَهُ فَلْيَحْتَلِبْ وَلْيَشْرَبْ وَإِنْ لَمْ يَكُنْ فِيهَا فَلْيُصَوِّتْ ثَلَاثًا فَإِنْ أَجَابَهُ فَلْيَسْتَأْذِنْهُ وَإِلَّا فَلْيَحْتَلِبْ وَلْيَشْرَبْ وَلَا يَحْمِلْ قَالَ الشَّيْخُ أَحَادِيثُ الْحَسَنِ عَنْ سَمُرَةَ لَا يُثْبِتُهَا بَعْضُ الْحُفَّاظِ وَيَزْعُمُ أَنَّهَا مِنْ كِتَابٍ غَيْرَ حَدِيثِ الْعَقِيقَةِ الَّذِي قَدْ ذُكِرَ فِيهِ السَّمَاعُ وَإِنْ صَحَّ فَهُوَ مَحْمُولٌ عَلَى حَالِ الضَّرُورَةِ
hadithunlocked.com