Listen to the advice of Imam Ibn Jamaa’ah if you want to know what it takes to correct your intention, “A proper and sincere intention when studying Islam is to intend to win the pleasure of Allah by what you are doing. You should intend to practice what you learn, to resurrect the Shariah, hoping that this knowledge will shine light on your heart, cleanse your soul, and bring you closer to Allah on the day of Judgement. Your intention for studying Islam should not be to win any worldly commodity, like leadership or fame or riches. It should not be learnt so that you can show off to your colleagues or so that people will revere you and sit you in a chief position in their gatherings, and so on.” – from Imam Ibn Jamaa’ah’s book, Tadhkirat as-Saami’ wal Mutakallim.