It is narrated from Buraidah (may Allah be pleased with him) that whenever the Prophet (peace and blessings be upon him) would send out an army, he would appoint a commander over them... then he narrated a lengthy hadith.
Hadith Referenceمسند الإمام الشافعي / كتاب الجهاد وقسم الغنائم / 1733