KNOW that sins are a barrier between you and Allah. Keeping away from that which makes you far from Allah is obligatory. It is achieved by 1) knowledge 2) regret and 3) determination. Imam ghazali In Ihya Ulum ud Din