It was narrated that Abu Hurairah said:
"The Messenger of Allah said: 'When Allah wills good for a person, He causes him to understand the religion.'" (ES)
English reference (ES): Vol. 1, Book 1, Hadith 220 (ES)
Arabic reference (ES): Book 1, Hadith 225 (ES)