The Messenger of Allah (peace be upon him) said: “Whoever follows a path in pursuit of knowledge (of the deen), Allah will facilitate for him a path to Paradise.” [Muslim]
The Prophet may Allah’s peace and blessings be upon him informs us in this Hadīth that If a person treads a path in pursuit of knowledge or even if he seeks knowledge while at home, Allah, the Almighty, will reward him by making easy a path for them to Jannah
Shaykh Abdur-Rahman As-Sa’dee said, “Thus any path a person takes, whether physical or otherwise, something that will help them in acquiring knowledge of the Deen, they enter in the words of the Prophet, “Whoever follows a path in pursuit of knowledge (of the deen), Allah will facilitate for him a path leading him to Paradise."
Mu‘āwiyah ibn Abi Sufyān reported: The Messenger of Allah PBUH said: “Whoever Allah wills to do good to, He makes him comprehend the religion.” This noble Hadīth says that the person whom Allah wills to benefit and do good to, He makes him knowledgeable and insightful about the rulings of Shariah and grants them Fiqh (understading) of the Deen.