Obey Allah and obey the Messenger (Muhammad ﷺ ) and those of you (Muslims) who are in authority... (V.4:59)

Hadith Number 4584

setting

Narrated Ibn `Abbas

The Verse: "Obey Allah and Obey the Apostle and those of you (Muslims) who are in authority." (4.59) was revealed in connection with `Abdullah bin Hudhafa bin Qais bin `Adi' when the Prophet (ﷺ) appointed him as the commander of a Sariyya (army detachment).