Abu Bakr reported,

He passed by a shepherd driving his sheep toward the rock and asked him, "Whose servant are you, young man?"The boy replied, "I belong to a man from Quraysh," naming him, and he recognized the man.He asked, "Is there any milk in your flock?"The boy answered, "Yes."He said, "Will you milk some for us?"The boy replied, "Yes," and milked some for him. He brought it to the Messenger of Allah ﷺ, who drank from it.

Azami 5480

Sahih

في قصة الهجرة

عن أبي بكر

أنه مر على راعي غنم يسوق غنمه إلى الصخرة، فسأله: لمن أنت يا غلام؟ قال: لرجل من قريش سماه، فعرفه، فقال: هل في غنمك لبن؟ قال: نعم. فقال: هل أنت حالب لنا؟ قال: نعم. فحلب له، فأتى به رسول الله ﷺ، فشرب منه.

الأعظمي 5480صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Sales
Chapter
Rulings on sales and trade
Section
It is permissible for the wayfarer to eat dates and drink milk when passing by them
Numbering
Jami al-Kamil 5480 (2nd edition)
Azami 5480