عن معاوية بن أبي سفيان رضي الله عنه قال: قال رسول الله صلى الله عليه وسلم : «من يُرِدِ الله به خيرا يُفَقِّهْهُ في الدين». [صحيح] - [متفق عليه] المزيــد ...
Mu‘āwiyah ibn Abi Sufyān (may Allah be pleased with him) reported: The Messenger of Allah (may Allah's peace and blessings be upon him) said: "Whoever Allah wills to do good to, He makes him comprehend the religion." Sahih/Authentic. - [Al-Bukhari and Muslim]
The person whom Allah wills to benefit and do good to, He makes him knowledgeable and insightful about the rulings of Shariah.
The Hadīth indicates the great merit of acquiring good understanding of the religion (Fiqh), and encourages it.
Fiqh could be used to refer to knowledge of the detailed Shariah rulings from their detailed evidences, or to refer to knowledge about the religion of Allah in general: like the fundamentals of Imān, the ordinances of Islam, the reality of Ihsān and knowing what is lawful and what is unlawful.
It is also deduced from the Hadīth that the one who turns away from seeking a good understanding of the religion is someone Allah Almighty has not willed good for.
Whoever is keen on learning religious knowledge, Allah loves him since He willed good for him by guiding him to learn about his religion and have good understanding of it.
Having a good understanding of the religion is praiseworthy, whereas having a good understanding of something else is neither praiseworthy nor blameworthy. Yet it is praiseworthy if it is a means to a praiseworthy outcome, and blameworthy if it is a means to a blameworthy outcome.