Sunan al-Darimi 230
أَخْبَرَنَا عَبْدُ اللَّهِ هُوَ ابْنُ صَالِحٍ، حَدَّثَنِي اللَّيْثُ، عَنْ يَزِيدَ بْنِ عَبْدِ اللَّهِ بْنِ أُسَامَةَ بْنِ الْهَادِ، عَنْ عَبْدِ الْوَهَّابِ، عَنِ ابْنِ شِهَابٍ، عَنْ حُمَيْدِ بْنِ عَبْدِ الرَّحْمَنِ، عَنْ مُعَاوِيَةَ ﵁، قَالَ: سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ: «مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُفَقِّهْهُ فِي الدِّينِ»
ʿAbdullah, he is Ibn Salih, informed us; he said: Al-Layth narrated to me, from Yazid ibn ʿAbdullah ibn Usamah ibn al-Had, from ʿAbd al-Wahhab, from Ibn Shihab, from Humayd ibn ʿAbd ar-Rahman, from Muʿawiyah, may Allah be pleased with him, who said: I heard the Messenger of Allah ﷺ say: "Whomever Allah wants good for, He gives him understanding of the religion."