Full Sharh — Mishkat al-Masabih 3535
وَعَنْ أَبِي سَعِيدٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " مَا بَعَثَ اللَّهُ مِنْ نَبِيٍّ وَلَا اسْتَخْلَفَ مِنْ خَلِيفَةٍ إِلَّا كَانَتْ لَهُ بِطَانَتَانِ: بِطَانَةٌ تَأْمُرُهُ بِالْمَعْرُوفِ وَتَحُضُّهُ عَلَيْهِ وَبِطَانَةٌ تَأْمُرُهُ بِالشَّرِّ وَتَحُضُّهُ عَلَيْهِ وَالْمَعْصُومُ مَنْ عصمَه اللَّهُ ". رَوَاهُ البُخَارِيّ
English Translation
Abu Sa'id reported God's Messenger as saying, “No prophet is sent by God and no caliph succeeds another without having two close associates, one who commands and urges him to do what is reputable and one who commands and urges him to do what is evil. The one who is protected is he whom God protects.” Bukhari transmitted it.
Source
Mishkat al-Masabih(مشكاة المصابيح)
The Offices of Commander and Qadi
Hadith Number
3535