Hazrat Moulana Muhammad Ilyaas (rahmatullahi ‘alaih) once mentioned:

When a person engages in the work of deen, his intention should be solely to acquire the pleasure of Allah Ta‘ala and earn reward in the hereafter. However, the worldly benefits that are promised for the one who engages in the works of deen should also be mentioned as a means of encouragement. Some people are such that they initially get involved in deeni work with the hope of obtaining worldly benefits, but through the barakah and blessings of the deeni work they are involved in, Allah Ta‘ala blesses them with true sincerity. (Malfoozaat Hazrat Moulana Muhammad Ilyaas (rahmatullahi ‘alaih) pg. 77)

Source: Ihyaauddeen.co.za