Mu’awiyah reported: The Messenger of Allah, peace and blessings be upon him, said, “To whomever Allah wills goodness, He grants him understanding of the religion.”
Source: Ṣaḥīḥ al-Bukhārī 71, Ṣaḥīḥ Muslim 1037
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
عَنْ مُعَاوِيَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ يُرِدْ اللَّهُ بِهِ خَيْرًا يُفَقِّهْهُ فِي الدِّينِ
71 صحيح البخاري كتاب العلم باب من يرد الله به خيرا يفقهه في الدين
1037 صحيح مسلم كتاب الزكاة باب النهي عن المسألة