A spiritual aspirant wrote regarding a certain sin and requested for advise in that regard.
Sayyidi wa sanadi Hazrat Moulana Mohammad Taqi Usmani sahib (Allah SWT preserve him and allow us to benefit from him abundantly. Ameen) replied:
“First perform two rakah salatul tauba and seek forgiveness on your past. After that, perform two rakah salatul hajat and pray for your steadfastness. Next time when you desire to do that sin, then recall about the punishment from Allah SWT for this sin and get yourself busy in something else.”
Meraj us Salikeen: Islahi Khutoot #9