Mu'awiyah (RAA) narrated that the Messenger of Allah (ﷺ) said:
"When Allah wishes good for anyone, He bestows upon him the Fiqh (comprehension) of the religion." Agreed upon. (JA)
English reference (JA): Book 16, Hadith 1565 (JA)
Arabic reference (JA): Book 16, Hadith 1522 (JA)