Allah, the Exalted, said:
٨٢ - باب حث السلطان والقاضي وغيرهما من ولاة الأمور على اتخاذ وزير صالح وتحذيرهم من قرناء السوء والقبول منهم
Allah, the Exalted, said:
Close friends, that Day, will be enemies to each other, except for the righteous
From Abu Sa'id and Abu Hurayrah (may Allah be pleased with them): that the Messenger of Allah ﷺ said: “Allah never sent a prophet, nor appointed a successor, but that he had two inner circles of confidants: one circle enjoining good upon him and urging him to it, and another circle enjoining evil upon him and urging him to it. The one kept safe is he whom Allah keeps safe.” Narrated by al-Bukhari.
From ʿĀʾishah (may Allah be pleased with her), who said: The Messenger of Allah ﷺ said: “When Allah wills good for a ruler, He grants him a truthful minister: if he forgets, he reminds him, and if he remembers, he assists him. But when He wills other than that for him, He grants him an evil minister: if he forgets, he does not remind him, and if he remembers, he does not assist him.” Narrated by Abu Dawud with a good chain of transmission, meeting the conditions of Muslim.