Uthman bin Hakim (may Allah have mercy on him) said: I heard Muhammad bin Ka'b (may Allah have mercy on him) say: I heard Mu'awiyah (may Allah be pleased with him) say: I heard the Messenger of Allah (peace and blessings be upon him) say: "O Allah, none can withhold what You have given, and none can give what You withhold. When Allah intends good for someone, He grants him understanding of the religion."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 16836