“Seek knowledge from the cradle to the grave.” – Prophet Muhammad SAW
In Islam, seeking ilm, or knowledge, is an act of worship that leads one to the path of Jannah (Paradise).
The niyyah, or intention is the most crucial aspect of ilm-seeking: pursuing knowledge must be for the pleasure of Allah SWT alone, and for the ilm gathered to be passed on to and shared with His creatures. Seeking knowledge to seek praise and rank amongst fellow mankind, or for other worldly motives, lead a person to ignorance and sins against the creatures of God, and ultimately, Hell.
Gather, therefore, as much ilm for the right reasons and do with them the right things.