What is an appropriate response after sinning?

Ahl al-Qibla, Sin and Faith, the Essence of Faith and Degrees of Believers