Sayyidina Abu Buraida (RA) reported that while the Prophet (SAW) was going on foot, a man came with his donkey. He said, “O Messenger of Allah (SAW) come ride and he moved behind (making space for the Prophet (SAW) in front) But, he said, “No You have more right over the main seat on your animal unless you give the right to me.” He said, “I have given you the right to it.” So, he mounted it.
[Ahmed 23053,Abu Dawud 2572]