It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that a bedouin passed by him, and he asked: Where do you intend to go? He replied: To a few goats of mine. He said: "Very well. Wipe the dust and mucus from their noses, keep their resting place clean, and pray at one side of their pen, for they are among the animals of Paradise; and seek good and blessing through them, for I heard the Messenger of Allah (peace and blessings be upon him) say: 'Indeed, this is a land of little rain.' The narrator said: This refers to Madinah."
Musaddad and Imam Ahmad bin Hanbal recorded it with one and the same chain, all of whose narrators are thiqat (trustworthy). Imam al-Bazzar recorded it with a da'if (weak) chain in these words: Sayyiduna Abu Hurayrah (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) was asked about praying in the pens of goats, and he (peace and blessings be upon him) said: "Wipe the dust from their noses and pray in their resting place, for they are among the beasts of Paradise."
Hadith Takhrij«رواه مسدد وأحمد بن حنبل بسند واحد رواته ثقات» «ورواه البزار بسند ضعيف ولفظه عن أبي هريرة قال: "سئل رسول الله صلى الله عليه وسلم عن الصلاة في مرابض الغنم» «أخرجه مسند أحمد برقم: 9342، وأخرجه المعجم الأوسط للطبراني برقم: 5342، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 2056، وأخرجه معرفة السنن والآثار برقم: 5130، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 8417»
It is narrated from Abu Hayyan (may Allah have mercy on him) that he heard an elder of Banu Hashim who, while mentioning goats, said that the Messenger of Allah (peace and blessings be upon him) said: "Pray in the goats' pens and wipe the dust or mucus from their noses and mouths, for they are among the animals of Paradise."
Abu Bakr bin Abi Shaybah recorded it through Abdullah bin Idris from him. This hadith has some supporting narrations (shawahid) that have passed before, some of them in the Book of Prayer and some at the end of the Book of Sales.