The donkey passed in front of the row and then he got down from it And joined the row along with the people. Sahih Muslim Book 4, Hadith 287