What principle applies to a Muslim who commits a sin?

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