Mishkat al-Masabih
Mishkat al-Masabih 3691
وَعَنْ أَبِي سَعِيدٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " مَا بَعَثَ اللَّهُ مِنْ نَبِيٍّ وَلَا اسْتَخْلَفَ مِنْ خَلِيفَةٍ إِلَّا كَانَتْ لَهُ بِطَانَتَانِ: بِطَانَةٌ تَأْمُرُهُ بِالْمَعْرُوفِ وَتَحُضُّهُ عَلَيْهِ وَبِطَانَةٌ تَأْمُرُهُ بِالشَّرِّ وَتَحُضُّهُ عَلَيْهِ وَالْمَعْصُومُ مَنْ عصمَه اللَّهُ ". رَوَاهُ البُخَارِيّ
Abu Sa'id reported that the Messenger of God said: God never sent a prophet or appointed a caliph without giving him two inner circles: one that commands him to do what is right and urges him to do it, and one that commands him to do evil and urges him to do it. The one protected from error is the one whom God protects. Al-Bukhari transmitted it.
Translation notes
The Arabic uses the term bitana for the close inner circle around a leader.