Narrated AbuSa'id al-Khudri: The Prophet (ﷺ) said: When three are on a journey, they should appoint one of them as their commander
Hadith No. 2608
Sunan Abu Dawud
Gradings:
Al-Albani:
Hasan Sahih
Muhammad Muhyi Al-Din Abdul Hamid:
Hasan Sahih
Zubair Ali Zai:
Daif