We must endeavor to seek knowledge that will benefit us in our purpose in this world. Abu Hurairah (May Allah be pleased with him) reported:
The Messenger of Allah said, “The world, with all that it contains, is accursed except for the remembrance of Allah that which pleases Allah; and the religious schools and seekers of knowledge.”(At- Tirmidhi, Riyad as-Salihin Book 13, Hadith 9)
Seeking knowledge and impacting others with it and they utilize or apply it is a great sadaqatul jariyah for us as muslims in this world and the hereafter.
Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, among the good deeds that will join a believer after his death are these: knowledge which he taught and spread, a righteous child he leaves behind, a copy of the Quran he leaves for inheritance, a mosque he has built, a house he built for travelers, a well he has dug, and charity distributed from his wealth while he was alive and well. These deeds will join him after his death.”(SunanIbnMājah 242)