Bismillah Ar-Rahman Ar-Raheem
Alhamdulilah Allahumma sali ala sayidna muhammad wa ala ali sayidna muhammad wa sallim
Taken from Discourses on Islamic Way of Life by Mufti Muhammad Taqi Usmani hafidullah
What to do if a sin is committed after prayer?
Hazrat Dr. Sahib rahimahullah alayh pointed out that if you pray to Allah to save yourself from sin and yet you happen to commit a sin, does it mean that your prayer had not been accepted? If a prayer for some worldly gain is not accepted it was pointed out that Allah shall grant the applicant some better substitute. Is it possible to say the same thing in case of a prayer for protection from sin? Can there be a better substitute than saving the suppliant from sins? Certainly not. Then what is the answer.
Allah grants an opportunity for repentance for sins
You must note it carefully that prayer was granted by Allah, but if, in some rare case, the man again commits the sin, Allah grants him an early opportunity to turn to Allah in repentance and seek His Pardon. Sometimes true and sincere repentance after the commission of a sin raises a servant’s rank to a height hardly conceivable. A servant’s remorse after committing a sin and offering hearty repentance are very valuable in the sight of Merciful Allah.
Then I shall raise you to a high station
Dr. Hazrat Abdul Hai Sahib rahimahullah alayh used to say that, if by chance you commit a sin after this prayer, do not mistrust Allah that He did not grant your prayer. You do not know anything about Allah’s intention about the height to which He wishes to raise you. When by chance you happen to commit a sin, Allah grants you an opportunity for repentance and shall make you a recipient of the benefits emanating from His attributes as the veiler of sins, being All-Merciful and All-forgiving...so never think that your prayer has gone waste. Persisst in doing these two things, i.e. pluck up courage and seek Allah’s bounties with your prayers and wait for the miraculous results.
There is only one forumula for safety from sins
I have been mentioned a few points about the sin of casting evil glances. May Allah help us by His mercy to act upon these points of advice. Ameen! It is not imperative only for the sin of casting evil glances but for all other sins that these should be resisted with repeated and renewed courage and by turning to Allah with repentance and prayer. Only one of the expedient will not do; both are necessary. Using only one of the two expedients may be likened to a man desiring to go westward, but running eastward. How is it possible? take the right direction and then hope to reach your desired destination. Anticipate the acceptance of your prayer after it has been directed in the right manner and in the right direction.
So turn to the right direction, pluck up courage, then go ahead and beg of Allah your boon. This is only formula for refraining from sins. This is also the formula for attaining all other virtues, devotion and righteousness. May Allah help us, by His Mercy, to act upon these pieces of advice. Ameen