The Messenger of Allah ﷺ said, "When Allah places someone in charge of any of the affairs of the Muslims and intends good for him, He provides him with a truthful minister who reminds him when he forgets and assists him when he remembers."
حدثنا حسين بن محمد قال حدثنا مسلم يعني ابن خالد عن عبد الرحمن بن أبي بكر قال أخبرني القاسم بن محمد
قال رسول الله ﷺ من ولاه الله عز وجل من أمر المسلمين شيئا فأراد به خيرا جعل له وزير صدق فإن نسي ذكره وإن ذكر أعانه
Its isnad is sahih, Abu Dawud narrated it 3/131 no. 2932 in Kharaj, and Nasai narrated it 1/159 no. 4204 in Bayah.