Knowledge is also the shortest path to Allah. Whoever travels the road of knowledge reaches Allah and the Garden by the shortest route. Knowledge also clears the way out of darkness, ignorance, doubt and skepticism. It is why Allah called His Book, “Light”.
Al-Bukhari and Muslim have reported on the authority of Abdullah ibn Umar that the Messenger of Allah [صلى الله عليه وسلم] said;
“Truly, Allah will not take away knowledge by snatching it away from people, but by taking away the lives of the people of knowledge one by one until none of them survive. Then the people will adopt ignorant ones as their leaders. They will be asked to deliver judgement and they will give them without knowledge, with the result that they will go astray and lead others astray.”
Taken from; Purification of the soul
It has been narrated that a man from Bani Isra’il collected eighty chests full of scriptures and books of knowledge but did not benefit from his knowledge. Allah the Exalted revealed to their prophet to say to this collector, “Even if you had collected a lot of knowledge it will not benefit you except if you do three things – do not love the dunya for it is not a home for the believers, do not befriend Satan for he is not a companion for the believers; and do not hurt anyone for that is not the way of the believers.”
“Near the establishment of the Hour, there will be the days of Al−Harj, and the religious knowledge will be taken away (vanish i.e. by the death of Religious scholars) and general ignorance will spread.” Abu Musa said, “Al−Harj, in the Ethiopian language, means killing,”
The Prophet also said, “This life is a prison for the believers and paradise for the disbelievers.”