Hazrat Moulana Ashraf ‘Ali Thanwi (rahmatullahi ‘alaih) once mentioned:
The righteous actions that we carry out during our lives are only through the grace of Allah Ta‘ala. Allah Ta‘ala creates the motivation within our hearts to remember Him and carry out those righteous actions. Hence, at no time should we ever feel that it is through our efforts that these righteous actions are being accomplished. Rather, we should, at all times, attribute the good to Allah Ta‘ala and express gratitude to Him. (Malfoozaat Hakeemul Ummat 23/62)
Source: Ihyaauddeen.co.za