Muawiyah (Radhiallahu anhu) reported:
The Messenger of Allah (Sallallaahu ‘alaihi wasallam) said:
“When Allah wishes good for someone, He bestows upon him the understanding of Deen.”
[Al-Bukhari and Muslim]
Commentary: Knowledge and understanding of Deen (religion) here stands for the understanding of the Qur’an and Hadith, religious injunctions, and knowledge of the lawful and the unlawful. This Hadith highlights the excellence of knowledge and the fact that it is a sign of Allah’s Help to the person who possesses it and acts upon it.
Riyad-us-Saliheen – Hadith No. 1376