"I was a companion rider on a female donkey with Al-Fadl. We came while the Prophet and his Companions were performing Salat at Mina." He said: "We dismounted from it and joined the row. The donkey then passed in front of them, and this did not invalidate their Salat."
Jami` at-Tirmidhi Book 2, Hadith 189