Mu'awiyah (May Allah be pleased with him) reported:
The Messenger of Allah said, "When Allah wishes good for someone, He bestows upon him the understanding of Deen."[Al-Bukhari and Muslim]. (PT)
App reference (PT): Book 13, Hadith 1 (PT)
Arabic/English book reference (PT): Book 13, Hadith 1376 (PT)