The Bible never names it directly, so no verse hangs your standing with God on it, and there is no condemnation here. The real questions are freedom, not being mastered, and where your heart is looking for life.
The Grace Answer
This is one of those questions people are almost afraid to ask, usually because they are already drowning in shame about it. So start here. There is no condemnation for you in Christ. Whatever guilt has been circling in your head, telling you that you are dirty and disqualified, it is not the voice of your Father.
Scripture never addresses this act by name. That matters, because it means no one gets to manufacture a law where God did not write one and then hang your acceptance on it. When the Bible is silent on the specifics, grace refuses to invent a rule to condemn you with. Much of the pressure you feel is inherited from other people’s rules, not from God.
The real question underneath
Paul gives the tool that actually helps. All things are lawful, he said, but not all things are helpful, and he would not be brought under the power of anything. So the useful question is not did I break a rule. It is what this is attached to. Pornography, fantasy that turns a real person into an object, secrecy, isolation, escape, compulsion you cannot seem to steer. Those deserve honest attention, because they train the heart toward consuming rather than loving, and they can quietly wound a marriage. Grace hands you no fresh rule. It simply asks whether your desires are becoming freer and more loving, or more ruled by isolation and escape.
Here is the layer most people miss. Shame is often one of the deepest forms of bondage, even when the behavior itself has also become compulsive or harmful. Shame says you are filthy, God is disgusted, try harder, and that lie drives people right back to the thing they hate. Grace breaks the loop from the other side. You are already made the righteousness of God in Christ, already clean, already His. From that settled place you can bring the whole honest picture into the light, with God and with a trusted person, and let acceptance rather than shame reshape what you want over time. Identity first, always. The new heart in you was never made to be mastered by anything. It was made to be free.