The Messenger of Allah (ﷺ) used to keep to the rear when travelling and urge on the weak. He would take someone up behind him and make supplication for them all.
Sunan Abi Dawud Book 15, Hadith 163