Always be in the habit of performing good deeds. The greatest of all deeds is to stop oneself from sinful activities.
Initially, it will be difficult to curtail yourselves but latter it will become easier. In the end,
Your hearts will become so pure that you will not even think of anything sinful.
Create a habit of performing good deeds and of refraining from sinful deeds.

Aga Khan III