Your union with God cannot be broken; He promised never to leave you. What sin disturbs is your sense of nearness, on your side of the glass. God does not withdraw. The distance you feel is a feeling, not a fact.
The Grace Answer
This question hides an assumption worth dragging into the light: that God moves. That when you sin He steps back, arms crossed, and stays there until you make it right, and only then does He return. It is how a lot of us were parented, so it is how we imagine God. But it is not how He describes Himself.
It helps to separate two things the word fellowship can mean. There is your union with God, the relationship itself, and there is your experience of that union, the felt sense of closeness day to day. Sin can cloud the second. It cannot sever the first. The relationship is not the thing at risk.
Under the New Covenant He made a promise with no exit clause: “I will never leave you nor forsake you.” Never is a strong word, and He chose it. Your relationship with God is not a connection you maintain by good behavior and sever by bad. It is a union He established, sealed with His Spirit, and secured by His own faithfulness. He does not come and go based on your week.
Then why does it feel so distant?
Because sin is a cloud, not a wall. It does real damage to your experience of God. Guilt makes you hide. Shame makes you assume He is angry. A hard heart dulls your sense of His voice. All of that is real, and it is worth taking seriously. But notice where the change happened. It happened in you, not in Him. The sun does not leave the sky when clouds roll in. You just stop feeling its warmth for a while.
This is why the distinction matters so much. If you believe sin breaks the relationship, then every failure sends you scrambling to rebuild what was never actually torn down, and you live from crisis to crisis. If you know the union is unbroken, you can do what a child does after a bad day: not campaign to get back in, but simply turn your face back toward the Father who never turned His away. Feelings of distance are real feelings. They are not facts about where you stand.