Deuteronomy 23:10

10 “Any man who becomes ceremonially defiled because of a nocturnal emission must leave the camp and stay away all day.

Deuteronomy 23:10 In-Context

8 The third generation of Edomites and Egyptians may enter the assembly of the LORD .
9 “When you go to war against your enemies, be sure to stay away from anything that is impure.
10 “Any man who becomes ceremonially defiled because of a nocturnal emission must leave the camp and stay away all day.
11 Toward evening he must bathe himself, and at sunset he may return to the camp.
12 “You must have a designated area outside the camp where you can go to relieve yourself.
Holy Bible. New Living Translation copyright© 1996, 2004, 2007, 2013 by Tyndale House Foundation. Used by permission of Tyndale House Publishers Inc., Carol Stream, Illinois 60188. All rights reserved.