The Messenger of Allah ﷺ said, "Whoever among you is given charge of any affair and Allah intends good for him, He grants him a righteous helper. If he forgets, the helper reminds him, and if he remembers, the helper assists him."
أخبرنا عمرو بن عثمان قال حدثنا بقية قال حدثنا ابن المبارك عن ابن أبي حسين عن القاسم بن محمد قال سمعت
قال رسول الله ﷺ من ولي منكم عملا فأراد الله به خيرا جعل له وزيرا صالحا إن نسي ذكره وإن ذكر أعانه
Source, sahih. Narrated by Bayhaqi, hadith no. 7827, and it has a corroborating witness in Bukhari, hadith no. 1191.