The Prophet ﷺ said: When three are on a journey, they should appoint one of them as their commander. Nafi' said: We said to AbuSalamah: You are our commander.
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ إِذَا كَانَ ثَلاَثَةٌ فِي سَفَرٍ فَلْيُؤَمِّرُوا أَحَدَهُمْ قَالَ نَافِعٌ فَقُلْنَا لأَبِي سَلَمَةَ فَأَنْتَ أَمِيرُنَا