Ezekiel 46:9

Amplified Bible (AMP)
But when the people of the land come before the Lord at the appointed feasts, he who enters by way of the north gate to worship shall go out by way of the south gate. And he who enters by way of the south gate shall go out by way of the north gate. No one shall return by way of the gate through which he entered, but shall go out straight ahead [through the opposite gate].

Read Ezekiel 46:9 in other translations