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.