Imam Hasan al-Basri (may Allah have mercy on him) said: Whoever seeks any part of this knowledge with the intention of reward from Allah Almighty, then if Allah wills, he will attain it (the knowledge of religion). And whoever intends to attain the world through this knowledge, then by Allah, he will get the world. That is, «﴿وَمَا لَهُ فِي الْآخِرَةِ مِنْ خَلَاقٍ﴾» [بقره: 200/2] they will have no share in the Hereafter.