"The Messenger of Allah(ﷺ)visited Al Abbas in some land of ours outside the city, and we had a small dog and a donkey which was grazing. The Messenger of Allah(ﷺ) prayed Asr and they were in front of him, and they were not shooed away or pushed away."
Sunan an-Nasa'i Book 9, Hadith 12