From the virtues of knowledge which is taught and learnt for the sake of Allah is what the author, may Allaah shower blessings on him, recorded on the authority of Aboo Hurayrah - may Allah be pleased with him. he narrated that the Prophet ﷺ said: “He who acquires knowledge through which the pleasure of Allah might be sought only so that he might attain through it something that he desires of the world will not perceive even the fragrance of Paradise on the Day of Resurrection.” That is, its smell.
Knowledge can be classified into two:
The first is the knowledge through which the pleasure of Allah is sought. This is the knowledge of the Sharee'ah and what aids it such as the knowledge of Arabic Grammar.
The second is the knowledge of this world like knowledge of engineering, building, mechanics and similar fields.
There is no harm if a person learns the second, which is the knowledge of this world, in order to achieve worldly gains. He is learning engineering in order to become an engineer and earn an income and a living. He learns mechanics for the sake of becoming a mechanic, so he works and toils with the intention of achieving worldly gains. There is no harm upon him if he intends worldly advances with his learning.
But if he had intended benefiting the Muslims with what he learnt, it would have been better for him, and he would have attained religious and worldly benefits through it. For instance, if he had learnt engineering in order to protect the Muslims from employing engineers who are disbelievers, this would have been good. Also, he learns mechanics in order to fulfill the needs of the Muslims when
they are in need of a mechanic, this is better and he will get a reward from it. Nonetheless, he has the right to intend nothing but worldly benefits, and there is no sin upon him for that. He is just like someone that sells and buys for the sake of increasing his wealth.
As for the first category of knowledge, which is learning the Sharee'ah of Allah, the Mighty and Sublime, and its affiliates, nothing should be desired with this class of knowledge except the pleasure of Allah. If he intends to achieve worldly gains through it, he will not perceive the fragrance of Paradise on the Day of Resurrection. This severe threat, and refuge is with Allah, indicates that the one who desires worldly benefits through his learning of the Sharee'ah has committed one of the major sins. Indeed, his knowledge will not be blessed. That is, for example, he says, 'I want to learn in order to turn the attention of the people to me so that they will respect and exalt me.' 'I want to learn so that I will become a teacher collecting salary' and the like. Such will not perceive the fragrance of Paradise on the Day of Resurrection.
This may be challenging or befuddling to some people who are studying in regular school system such as colleges and universities in order to obtain certificates. It may be said that earning certificate is not necessarily for worldly gains alone; it could be for worldly gains and likewise for the hereafter. So if a student says, 'I am seeking knowledge in order to get certificate so that I will have a teaching job and benefit the people with it or to become a principal in the department directing its people towards good', this is a good and pure intention which is neither sinful nor blameworthy.
Unfortunately, the measure of qualification today has become exclusively these certificates. Basically, people are employed and given responsibilities such as teaching in colleges and universities based on these certificates. Even if one is very knowledgeable, he will not be privileged to take such position because he holds no certificate. Indeed, times have changed and given rise to this end result.
We say: if you seek for knowledge in order to obtain certificate to take teaching position and benefit the creatures, not for worldly gains, then there is no harm in this. In addition, you will not be considered
as one of those seeking the glitters of this world with their knowledge and you will not be subjected to the threat, and praises be to Allah. Verily, deeds are judged by intention, and a person will be rewarded according to his intention. This is the yardstick. Check your heart, what does it intend?
As for the one who seeks the knowledge of the Sharee'ah in universities in order to obtain certificate, we should ask him about his goal. Do you want to acquire the certificate so as to enhance your salary scale? If he affirms this, explaining that he is poor and in need of this, we will tell him that he only desires the worldly gains. However, if he negates this and explains that he intends to benefit people with the acquired knowledge, but it is not possible to achieve this through teaching without certificates. Likewise, he may need the certificate to occupy an eminent office which will be of great benefit to the Muslims. We will say, 'All praise is due to Allah, this is a good intention and there is nothing against you. Deeds are judged by intention and everyone will be rewarded according to his intention.'
The important point, my brother seeking for knowledge, is to be wary of evil intentions. The knowledge of the Sharee'ah is more prestigious, magnificent and higher than to seek the transient gains of this world with it. If you pitch your tent with the world, it must leave you or you leave it, and you may be in need and lack of wealth or you die and the wealth will go to someone else.
However, the affairs of the hereafter are eternal. Why would you make the knowledge of the Sharee'ah, which is for the sake of worship and the best form of worship, a ladder to attain the paltry gains of the world? This is intellectual inanity and religious misguidance. The knowledge of the Sharee'ah must be for the sake of Allah, the Mighty and Sublime, preservation of His Sharee'ah, Blessed be He and the most High, and removing ignorance from yourself and your Muslim brothers. Similarly, it must be a guide to the right guidance and to realize the bequest of the Prophet ﷺ because the scholars are the heirs of the Prophets.
We ask Allah to make our intention sincere and rectify our action.
Verily, He has power over all things.