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.'" (RU)
English reference (RU): Vol. 1, Book 1, Hadith 220 (RU)
Arabic reference (RU): Book 1, Hadith 225 (RU)