Sahih Muslim 1838 a
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وَلَوِ اسْتُعْمِلَ عَلَيْكُمْ عَبْدٌ يَقُودُكُمْ بِكِتَابِ اللَّهِ فَاسْمَعُوا لَهُ وَأَطِيعُوا "
It has been narrated on the authority of Yahya b. Husain who learnt the tradition from his grandmother. She said that she heard the Prophet (ﷺ) delivering his sermon on the occasion of the Last Pilgrimage. He was saying:
If a slave is appointed over you and he conducts your affairs according to the Book of Allah, you should listen to him and obeey (his orders).
Full reference and source
Sahih Muslim 1838 a In-book : Book 33, Hadith 56 USC-MSA web (English) : Book 20, Hadith 4528 (deprecated)
View source on Sunnah.com (opens in a new tab)