On many occasions in our life our actions and our thoughts differ, we believe in something but yet we don’t act on it. If such behavior appears in matter of religion people start thinking that they have become hypocrites.
A similar man asked Sheikh Saalih about his behavior, he said when I hear the seerah of Prophet (PBUH) and when I hear the recitation of Quran I weep but on later I commit sins, does this makes me a munafiq?
Sheikh Saalih responded that his fear about his emaan shows that there is khair in him. He quoted Hassan Al-Basri who said “No one fears it but a believer, and no one feels safe from it but a hypocrite”
Human cannot claim to be free from sins, nor Allah demands from us to be without sins rather we should not be deliberately involved in sins, and if we fall in sin we should apologize and seek forgiveness from our Lord.
We should also find the reasons for which we commit sin and then we should try to get rid from it so that we remain protected from the sin.