I have a question about something i read:-

al-Haafidh al-Mundhiri mentions many hadiths that warn the person who seeks
knowledge for a cause other than the sake of Allaah (swt). We will quote a
few of them here. Abu Hurayrah (ra) said, the Messenger of Allaah (saw)
said, "Whoever seeks knowledge that should be sought only for the sake of
Allaah (swt) but seeks it purely for some worldly gain, he will not smell the
fragrance of Paradise on the Day of Resurrection". It was reported by Abu
Dawud and Ibn Maajah, by Ibn Hibbaan in his Saheeh and by al-Haakim who said,
"It is saheeh according to the conditions of al-Bukhaari and Muslim".

Jaabir said, The Messenger of Allaah (saw) said, "Do not seek knowledge in
order to compete with the knowledgeable, or to win arguments with the
ignorant, or to show off in gatherings. Whoever does any of that will be in
Hell." It was reported by Ibn Maajah (ra), by Ibn Hibbaan in his Saheeh and
al-Bayhaqi.

Ibn 'Umar (ra) said that the Messenger of Allaah (saw) said, "Whoever seeks
knowledge for a reason other than for the sake of Allaah (swt), then let him
take his place in Hell." It was reported by at-Tirmidhi and Ibn Maajah from
Ibn 'Umar via Khaalid ibn Durayk who did not hear it directly from him; the
men in their isnaads are thiqaah." (at-Targheeb wat-Tarheeb by al-Mundhiri
1/91)


I don't understand this very well. I read a lot and i enjoy gathering knowlege just for the sake of learning new things, wether from islam to become a better muslim, educatoin to get a better job, or just fiction to enjoy the work of others. does this mean what some of when im doing is haramm???? But I know that god said that it's a duty for muslims to learn, so I'm a bit confuses ><.

could some please to explain this to me?