Committing a forbidden act does not, by itself, make a Muslim a kaafir. A person may commit a major sin, even repeatedly, while remaining within Islam, unless he denies a known ruling, mocks it, or makes lawful what Allah has clearly forbidden in a way that amounts to rejecting revelation.
Why the argument can sound persuasive
The argument begins with a true principle: ribā, unlawful looking, and certain forms of entertainment are forbidden. Allah does not permit believers to treat His commands lightly. So one might reason: if doing what Allah forbids shows rejection of His authority, then using a ribā-based bank, listening to an unlawful song, or staring deliberately at a forbidden sight must be disbelief.
That concern becomes stronger when the word "permits" means more than merely using something under pressure or weakness. If a person sincerely believes that ribā is permissible, despite knowing that the Quran forbids it, he is not merely committing a sin; he is rejecting a clear divine ruling. This is a serious matter, and the objection is right to distinguish it from ordinary moral failure.
The Quran distinguishes sin from disbelief
The Quran calls ribā forbidden in unmistakable terms:
Allah has permitted trade and forbidden ribā.
Quran 2:275
Yet the Quran also describes believers who commit grave wrongs as believers, not as people outside Islam. It says:
If two groups of believers fight each other, make peace between them. Then if one of them transgresses against the other, fight the transgressing group until it returns to the command of Allah.
Quran 49:9
The transgressing group committed a grave sin, yet Allah still called both groups "believers." He also says:
Indeed, Allah does not forgive associating partners with Him, but He forgives anything less than that for whom He wills.
Quran 4:48
This is the mainstream doctrine of the scholars: disbelief that removes a person from Islam includes denying Allah's ruling, rejecting the Quran, mocking the religion, or knowingly declaring a matter lawful when its prohibition is established and understood. Mere disobedience is different. It is sinful, but it does not automatically cancel faith.
What the Sunnah makes clear
The Prophet Muhammad (PBUH) warned against treating sinners as unbelievers. He said:
No fornicator commits fornication while he is a believer, and no thief steals while he is a believer.
Sahih al-Bukhari; Sahih Muslim
The scholars explain this as a deficiency or loss of complete faith, not the disappearance of Islam altogether. The same principle applies to a person who falls into ribā, listens to something forbidden, or looks deliberately at what he must not look at. He has sinned and must repent; he has not necessarily become a kaafir.
What this establishes - and what it does not
It establishes that takfir cannot be based on the act alone. One must distinguish between weakness, desire, ignorance, coercion, and denial. It does not make ribā permissible, nor does it make sinful entertainment or unlawful looking harmless. A person who knowingly calls a clear prohibition lawful may face a different ruling, but applying takfir to a particular individual requires knowledge of what he believes and the removal of relevant excuses. Therefore, Muslims should condemn the sin, advise repentance, and be extremely cautious about declaring a person outside Islam.