Sunan Ibn Majah, Book 1, Hadith 225 (In-Book) ⓘ
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.'"
حَدَّثَنَا بَكْرُ بْنُ خَلَفٍ أَبُو بِشْرٍ، حَدَّثَنَا عَبْدُ الأَعْلَى، عَنْ مَعْمَرٍ، عَنِ الزُّهْرِيِّ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُفَقِّهْهُ فِي الدِّينِ " .
also referenced under: Hadith 220 (Reference) & Volume 1, Book 1, Hadith 220 (DarusSalam)