Mu'awiyah (May Allah be pleased with him) reported: The Messenger of Allah said, "When Allah wishes good for someone, He bestows upon him the understanding of Deen."
[Al-Bukhari and Muslim].
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. Ibn Mas'ud (May Allah be pleased with him) reported: The Prophet (PBUH) said, "Envy is permitted only in two cases: A man whom Allah gives wealth, and he disposes of it rightfully, and a man to whom Allah gives knowledge which he applies and teaches it."
[Al-Bukhari and Muslim].
I Testify There Is No Deity Worthy of Worship, Except Allah, And Muhammad (SalAllahu Alayhi Wasaalam) Is His Prophet And Messenger.