Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:951a

The Prophet ﷺ said: When one of you comes to the cattle, he should seek permission of their master if he is there; if he permits, he should milk (the animals) and drink. If he is not there, he should call three times. If he responds, he should seek his permission; otherwise, he may milk (the animals) and drink, but should not carry (with him). (Using translation from Abū Dāʾūd 2619)   

السيوطي:٩٥١a

"إذا أتى أحدُكم على ماشِيةٍ فإن كان فيها صاحبُها فليستأذنه، فإن أذن له فليحتلِبْ وليشربْ، وإن لم يكن فيها فليصوَّتْ ثلاثًا، فإن أجابه أحدٌ فليستأذنه، فإن لم يُجبْه أحدٌ فليحتلب ولْيَشْرَبْ، ولا يَحْمِلْ".  

[د] أبو داود [ت] الترمذي حسن صحيح غريب، والرويانى، [طب] الطبرانى في الكبير [ق] البيهقى في السنن [ض] ضياء المقدسي في مختاره عن سمرة

See similar narrations below:

Collected by Abū Dāwūd, Tirmidhī, Ṭabarānī, Bayhaqī
abudawud:2619ʿAyyāsh b. al-Walīd al-Raqqām > ʿAbd al-Aʿlá > Saʿīd > Qatādah > al-Ḥasan > Samurah b. Jundub > Nabī Allāh ﷺ

The Prophet ﷺ said: When one of you comes to the cattle, he should seek permission of their master if he is there; if he permits, he should milk (the animals) and drink. If he is not there, he should call three times. If he responds, he should seek his permission; otherwise, he may milk (the animals) and drink, but should not carry (with him).  

أبو داود:٢٦١٩حَدَّثَنَا عَيَّاشُ بْنُ الْوَلِيدِ الرَّقَّامُ حَدَّثَنَا عَبْدُ الأَعْلَى حَدَّثَنَا سَعِيدٌ عَنْ قَتَادَةَ عَنِ الْحَسَنِ عَنْ سَمُرَةَ بْنِ جُنْدُبٍ

أَنَّ نَبِيَّ اللَّهِ ﷺ قَالَ إِذَا أَتَى أَحَدُكُمْ عَلَى مَاشِيَةٍ فَإِنْ كَانَ فِيهَا صَاحِبُهَا فَلْيَسْتَأْذِنْهُ فَإِنْ أَذِنَ لَهُ فَلْيَحْلِبْ وَلْيَشْرَبْ فَإِنْ لَمْ يَكُنْ فِيهَا فَلْيُصَوِّتْ ثَلاَثًا فَإِنْ أَجَابَهُ فَلْيَسْتَأْذِنْهُ وَإِلاَّ فَلْيَحْتَلِبْ وَلْيَشْرَبْ وَلاَ يَحْمِلْ  

tirmidhi:1296Abū Salamah Yaḥyá b. Khalaf > ʿAbd al-Aʿlá > Saʿīd > Qatādah > al-Ḥasan > Samurah b. Jundab

That the Prophet ﷺ said: "When one of you comes upon livestock, if its owner is with it then seek his permission. If he permits him then let him milk it and drink. If there is no one with it then call out three times, if someone answers then seek his permission. If no one answers then let him milk it and drink without carrying (any of it away)." [He said:] There are narrations on this topic from Ibn 'Umar and Abu Sa'eed.  

[Abu 'Eisa said:] The Hadith of Samurah is a Hasan Gharib Sahih Hadith. This is acted upon according to some of the people of knowledge, and it is the view of Ahmad and Ishaq. [Abu 'Eisa said:] 'Ali bin Al-Madini said: "It is correct that Al-Hasan heard this from Samurah." Some of the people of Hadith criticized the narrations of Al-Hasan from Samurah, they said that he only narrated from a writing of Samurah.
الترمذي:١٢٩٦حَدَّثَنَا أَبُو سَلَمَةَ يَحْيَى بْنُ خَلَفٍ حَدَّثَنَا عَبْدُ الأَعْلَى عَنْ سَعِيدٍ عَنْ قَتَادَةَ عَنِ الْحَسَنِ عَنْ سَمُرَةَ بْنِ جُنْدَبٍ

أَنَّ النَّبِيَّ ﷺ قَالَ إِذَا أَتَى أَحَدُكُمْ عَلَى مَاشِيَةٍ فَإِنْ كَانَ فِيهَا صَاحِبُهَا فَلْيَسْتَأْذِنْهُ فَإِنْ أَذِنَ لَهُ فَلْيَحْتَلِبْ وَلْيَشْرَبْ وَلاَ يَحْمِلْ وَإِنْ لَمْ يَكُنْ فِيهَا أَحَدٌ فَلْيُصَوِّتْ ثَلاَثًا فَإِنْ أَجَابَهُ أَحَدٌ فَلْيَسْتَأْذِنْهُ فَإِنْ لَمْ يُجِبْهُ أَحَدٌ فَلْيَحْتَلِبْ وَلْيَشْرَبْ وَلاَ يَحْمِلْ قَالَ وَفِي الْبَابِ عَنْ عُمَرَ وَأَبِي سَعِيدٍ  

قَالَ أَبُو عِيسَى حَدِيثُ سَمُرَةَ حَدِيثٌ حَسَنٌ غَرِيبٌ وَالْعَمَلُ عَلَى هَذَا عِنْدَ بَعْضِ أَهْلِ الْعِلْمِ وَبِهِ يَقُولُ أَحْمَدُ وَإِسْحَاقُ قَالَ أَبُو عِيسَى وَقَالَ عَلِيُّ بْنُ الْمَدِينِيِّ سَمَاعُ الْحَسَنِ مِنْ سَمُرَةَ صَحِيحٌ وَقَدْ تَكَلَّمَ بَعْضُ أَهْلِ الْحَدِيثِ فِي رِوَايَةِ الْحَسَنِ عَنْ سَمُرَةَ وَقَالُوا إِنَّمَا يُحَدِّثُ عَنْ صَحِيفَةِ سَمُرَةَ
tabarani:6877al-Ḥusayn b. ʿAlī al-Maʿmarī > Yūsuf b. Ḥammād al-Maʿnī > ʿAbd al-Aʿlá > Saʿīd b. Bashīr > Qatādah > al-Ḥasan > Samurah b. Jundub

The Prophet ﷺ said: When one of you comes to the cattle, he should seek permission of their master if he is there; if he permits, he should milk (the animals) and drink. If he is not there, he should call three times. If he responds, he should seek his permission; otherwise, he may milk (the animals) and drink, but should not carry (with him). (Using translation from Abū Dāʾūd 2619)   

الطبراني:٦٨٧٧حَدَّثَنَا الْحُسَيْنُ بْنُ عَلِيٍّ الْمَعْمَرِيُّ ثنا يُوسُفُ بْنُ حَمَّادٍ الْمَعْنِيُّ ثنا عَبْدُ الْأَعْلَى عَنْ سَعِيدِ بْنِ بَشِيرٍ عَنْ قَتَادَةَ عَنِ الْحَسَنِ عَنْ سَمُرَةَ بْنِ جُنْدُبٍ قَالَ

قَالَ رَسُولُ اللهِ ﷺ «إِذَا أَتَى أَحَدُكُمْ عَلَى مَاشِيَةٍ فَإِنْ رَأَى فِيهَا صَاحِبَهُ فَلْيَسْتَأْذِنْهُ فَإِنْ أَذِنَ لَهُ فَلْيَحْلِبْ وَلْيَشْرَبْ وَإِنْ لَمْ يَكُنْ فِيهَا فَلْيُصَوِّتْ ثَلَاثًا فَإِنْ جَاءَ فَلْيَسْتَأْذِنْهُ وَإِلَّا فَلْيَحْلِبْ وَلْيَشْرَبْ وَلَا يَحْمِلْ»  

bayhaqi:19654Abū ʿAlī al-Rūdhbārī > Muḥammad b. Bakr > Abū Dāwud > ʿAyyāsh b. al-Walīd al-Raqqām > ʿAbd al-Aʿlá > Saʿīd > Qatādah > al-Ḥasan > Samurah b. Jundub > 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.  

البيهقي:١٩٦٥٤وَمِنْهَا مَا أَخْبَرَنَا أَبُو عَلِيٍّ الرُّوذْبَارِيُّ أنبأ مُحَمَّدُ بْنُ بَكْرٍ ثنا أَبُو دَاوُدَ ثنا عَيَّاشُ بْنُ الْوَلِيدِ الرَّقَّامُ ثنا عَبْدُ الْأَعْلَى ثنا سَعِيدٌ عَنْ قَتَادَةَ عَنِ الْحَسَنِ عَنْ سَمُرَةَ بْنِ جُنْدُبٍ ؓ أَنَّ نَبِيَّ اللهِ ﷺ قَالَ

إِذَا أَتَى أَحَدُكُمْ عَلَى مَاشِيَةٍ فَإِنْ كَانَ فِيهَا صَاحِبُهَا فَلْيَسْتَأْذِنْهُ فَإِنْ أَذِنَ لَهُ فَلْيَحْتَلِبْ وَلْيَشْرَبْ وَإِنْ لَمْ يَكُنْ فِيهَا فَلْيُصَوِّتْ ثَلَاثًا فَإِنْ أَجَابَهُ فَلْيَسْتَأْذِنْهُ وَإِلَّا فَلْيَحْتَلِبْ وَلْيَشْرَبْ وَلَا يَحْمِلْ قَالَ الشَّيْخُ أَحَادِيثُ الْحَسَنِ عَنْ سَمُرَةَ لَا يُثْبِتُهَا بَعْضُ الْحُفَّاظِ وَيَزْعُمُ أَنَّهَا مِنْ كِتَابٍ غَيْرَ حَدِيثِ الْعَقِيقَةِ الَّذِي قَدْ ذُكِرَ فِيهِ السَّمَاعُ وَإِنْ صَحَّ فَهُوَ مَحْمُولٌ عَلَى حَالِ الضَّرُورَةِ