Mishkat al-Masabih #3536
The Offices of Commander and Qadi
The Arabic includes the chain of narration (sanad) and the collector's commentary; the English translation shows the Prophet's words only.
وَعَنْ أَنَسٍ قَالَ: كَانَ قَيْسُ بْنُ سَعْدٍ مِنَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِمَنْزِلَةِ صاحبِ الشُّرَطِ منَ الأميرِ. رَوَاهُ البُخَارِيّ
Anas said that Qais b. Sa‘d had a position in relation to the Prophet like that of a prefect of a district in relation to a governor.
Bukhari transmitted it.
About Mishkat al-Masabih
This hadith is #3536 from Mishkat al-Masabih, in the Book of The Offices of Commander and Qadi.