The Messenger of Allah (ﷺ) said: “When Allah wishes good for anyone, He bestows upon him the Fiqh (comprehension) of the religion.” Agreed upon
عَنْ أَبِي ذَرٍّ،قَالَ قَالَ لِي رَسُولُ اللَّهِ صلى الله عليه وسلم " اتَّقِ اللَّهَ حَيْثُمَا كُنْتَ وَأَتْبِعِ السَّيِّئَةَ الْحَسَنَةَ تَمْحُهَا وَخَالِقِ النَّاسَ بِخُلُقٍ حَسَنٍ "
Abu Dharr (May Allah be pleased with him) said: “The Messenger of Allah said to me: 'Have Taqwa of Allah wherever you are, and follow an evil deed with a good one to wipe it out, and treat the people with good behavior.” [ Narrated by at-Tirmidhi - Hasan-Saheeh ]