When the Army Goes Out - Keeping Ourselves from Every Wicked Thing
“When the army goes out against your enemies, then keep yourself from every wicked thing.”
— Deuteronomy 23:9
There is something startling about this command.
Israel is preparing for war. The enemy is outside the camp. Soldiers are being called to battle. There is danger, uncertainty, fear, and the very real possibility of death.
And yet, in the middle of all this military preparation, God gives Israel a command about holiness.
“Keep yourself from every wicked thing.”
I find that deeply challenging.
Because it reminds me that the greatest danger facing God's people is not always the enemy standing outside the camp.
Sometimes the greater danger is what we allow to enter inside ourselves.
Israel could prepare its weapons, organize its army, establish its battle lines, and make strategic plans. But God was concerned about something deeper.
He wanted His people to remain holy.
The battlefield did not suspend God's standards.
War did not give Israel permission to abandon righteousness.
Fear did not excuse disobedience.
And the presence of an enemy did not mean Israel could become like the enemy.
That principle reaches far beyond an ancient military camp.
It speaks to me about how I live when life becomes difficult.
The Battlefield Does Not Cancel Holiness
Deuteronomy 23:9 begins with a very specific situation:
“When the army goes out against your enemies…”
This is not a peaceful afternoon in the marketplace.
Israel is going into battle.
Yet God does not say, “Because you are at war, ordinary standards no longer matter.”
Instead, He says:
“Then keep yourself from every wicked thing.”
That word “then” matters.
When pressure increases—then guard yourself.
When enemies appear—then guard yourself.
When fear rises—then guard yourself.
When circumstances become chaotic—then guard yourself.
When everything around you feels unstable—then guard yourself.
The temptation is often to think that difficult circumstances justify compromised behavior.
“I was angry because I was under pressure.”
“I acted that way because I was afraid.”
“I compromised because everyone else was doing it.”
“I stopped caring because I was exhausted.”
But God's command to Israel teaches me something different.
The harder the circumstances become, the more carefully I must guard my heart and conduct.
Holiness Is Not Only for Peaceful Seasons
It is easy to think about holiness when life is calm.
When everything is going well, I can pray.
I can worship.
I can study Scripture.
I can be patient.
I can speak gently.
But what happens when the battle begins?
What happens when someone attacks me?
What happens when I feel betrayed?
What happens when I am afraid?
What happens when I am exhausted?
What happens when I am surrounded by hostility?
That is when the command becomes especially powerful.
“Keep yourself from every wicked thing.”
God did not tell Israel that holiness was optional during difficult seasons.
The army was still God's army.
The soldiers were still God's people.
And the camp still belonged to God.
God Was Concerned About What Happened Inside the Camp
Deuteronomy 23 continues with instructions concerning the cleanliness of the military camp.
The reason is given plainly:
“Because the LORD your God walks in the midst of your camp, to deliver you and to give up your enemies before you; therefore your camp shall be holy, lest He see an unclean thing among you and turn away from you.”
— Deuteronomy 23:14
That changes everything.
Why must Israel care about holiness?
Because God is present.
The camp is not merely a military installation.
It is a place where the presence of God accompanies His people.
Israel was going into battle with the awareness that the LORD was walking among them.
Their conduct mattered because God was there.
This is one of the most sobering truths in Scripture.
I cannot separate my relationship with God from the way I live.
Holiness is not merely about appearing religious.
It is about recognizing the presence of the Holy One.
“The LORD Your God Walks in the Midst of Your Camp”
I love the imagery of Deuteronomy 23:14.
God walks among His people.
He is not distant.
He is not merely watching the battle from heaven.
The Scripture says:
“The LORD your God walks in the midst of your camp…”
That means Israel's military life was also spiritual life.
Their conduct mattered.
Their cleanliness mattered.
Their treatment of one another mattered.
Their obedience mattered.
Their relationship with God mattered.
The camp had to reflect the holiness of the One who dwelled among them.
And that raises a question for me:
What does my life communicate about the God who walks with me?
When I am under pressure, does my behavior still reflect Him?
When I am angry, do I remember Him?
When I am disappointed, do I still honor Him?
When I am afraid, do I still trust Him?
When I have power over someone else, do I still remember that I belong to Him?
The Enemy Outside Does Not Give Me Permission to Become Wicked Inside
This may be one of the most important lessons in Deuteronomy 23:9.
Israel had enemies.
Real enemies.
Dangerous enemies.
Yet God commanded Israel not to allow the presence of enemies to corrupt their own behavior.
There is a temptation that appears whenever we feel threatened:
We begin to resemble what we oppose.
We can become hateful while fighting hatred.
Cruel while opposing cruelty.
Dishonest while opposing dishonesty.
Vindictive while seeking justice.
Proud while defending truth.
God's command challenges that tendency.
Israel could fight its enemies without abandoning its identity as God's holy people.
The existence of an enemy did not redefine Israel.
God did.
Holiness Requires Vigilance
The Hebrew Scriptures repeatedly call God's people to watch themselves.
Deuteronomy says:
“Take heed to yourselves, lest you forget the covenant of the LORD your God which He made with you.”
— Deuteronomy 4:23
I notice something here.
The warning begins with “Take heed to yourselves.”
Before worrying about everyone else, examine yourself.
Before identifying someone else's sin, examine your own heart.
Before asking whether others are faithful, ask whether I am faithful.
Before demanding justice from someone else, ask whether I am walking uprightly before God.
This does not mean ignoring wickedness.
It means refusing to allow someone else's wickedness to become an excuse for my own.
Guard Your Heart
Proverbs gives us another powerful instruction:
“Keep your heart with all diligence, for out of it spring the issues of life.”
— Proverbs 4:23
The battlefield begins inside.
Long before wickedness becomes an action, it can become a thought.
Long before hatred becomes violence, it can take root in the heart.
Long before dishonesty becomes a deed, a person can begin justifying it internally.
That is why Scripture repeatedly emphasizes the heart.
God does not merely want outward compliance.
He wants His people to walk with Him sincerely.
David understood this when he prayed:
“Create in me a clean heart, O God, and renew a steadfast spirit within me.”
— Psalm 51:10
That is the prayer of someone who understands that holiness begins within.
War Reveals Character
Peace can hide many things.
Pressure reveals them.
When everything is comfortable, it can be easy to appear patient.
But pressure tests patience.
It can be easy to appear courageous when there is nothing to fear.
But danger tests courage.
It can be easy to speak about trusting God when everything is going well.
But crisis tests trust.
Israel's army was going into battle.
God knew that the external battle could create internal temptations.
Fear could lead to panic.
Anger could lead to cruelty.
Victory could lead to pride.
Defeat could lead to despair.
Power could lead to abuse.
Therefore, God gave Israel a command before the battle:
“Keep yourself from every wicked thing.”
The instruction was not merely about what Israel would do to its enemies.
It was about what Israel would become while fighting them.
Do Not Forget Who Gives the Victory
One of the greatest dangers after victory is pride.
Israel was repeatedly warned against forgetting God when things went well.
Deuteronomy says:
“Beware that you do not forget the LORD your God by not keeping His commandments, His judgments, and His statutes which I command you today.”
— Deuteronomy 8:11
Why would victory create such a danger?
Because success can make us believe we accomplished everything ourselves.
Deuteronomy warns:
“Then you say in your heart, ‘My power and the might of my hand have gained me this wealth.’”
— Deuteronomy 8:17
But Moses immediately corrects that thinking:
“And you shall remember the LORD your God, for it is He who gives you power to get wealth.”
— Deuteronomy 8:18
The same principle applies to Israel's battles.
Victory was never a reason for arrogance.
The people needed to remember who their God was.
Do Not Let Fear Make You Forget God
There is another side to battle: fear.
Deuteronomy 20 gives Israel instructions for approaching war.
The officers were told:
“Do not be fainthearted. Do not be afraid, and do not tremble or be terrified because of them.”
— Deuteronomy 20:3
And why?
“For the LORD your God is He who goes with you, to fight for you against your enemies, to save you.”
— Deuteronomy 20:4
Israel was not commanded to pretend that the enemy was harmless.
Instead, Israel was commanded to remember that God was greater than the enemy.
Fear could become an invitation to remember God.
And that is something I need to remember whenever my own circumstances feel overwhelming.
Fear may be real.
The enemy may be real.
The danger may be real.
But God is real too.
Holiness and Courage Belong Together
Sometimes we imagine holiness as weakness.
But Scripture presents something much stronger.
Joshua was told:
“Be strong and of good courage; do not be afraid, nor be dismayed, for the LORD your God is with you wherever you go.”
— Joshua 1:9
Courage does not mean abandoning righteousness.
True courage means remaining faithful when circumstances pressure me to compromise.
It takes courage to refuse revenge.
It takes courage to tell the truth.
It takes courage to remain sexually pure.
It takes courage to reject corruption.
It takes courage to forgive.
It takes courage to refuse hatred.
It takes courage to obey God when obedience costs something.
Holiness is not cowardice.
Holiness is strength under God's authority.
The Camp Had Boundaries
Deuteronomy 23 presents a picture of a community that understood boundaries.
There were things that belonged inside the camp and things that did not.
That principle appears throughout the Tanakh.
God repeatedly teaches Israel to distinguish between holy and common, clean and unclean, righteous and wicked.
Leviticus declares:
“You shall therefore be holy, for I am holy.”
— Leviticus 11:45
And again:
“Sanctify yourselves therefore, and be holy, for I am the LORD your God.”
— Leviticus 20:7
Holiness requires distinction.
Not everything belongs in my life.
Not every attitude deserves permission.
Not every relationship is healthy.
Not every desire should be entertained.
Not every opportunity should be accepted.
Not every cultural value should become my value.
Sometimes faithfulness means saying:
“That does not belong in God's camp.”
What Are We Allowing Into Our Camp?
This is where Deuteronomy 23:9 becomes personal.
If I imagine my heart and life as a camp, I have to ask:
What am I allowing inside?
Am I allowing bitterness to remain?
Am I feeding resentment?
Am I entertaining lust?
Am I making room for dishonesty?
Am I nurturing jealousy?
Am I excusing cruelty?
Am I allowing pride to grow?
Am I consuming things that continually corrupt my thoughts?
Am I surrounding myself with influences that pull me away from God?
These questions are uncomfortable.
But holiness often begins with uncomfortable honesty.
David prayed:
“Search me, O God, and know my heart; try me, and know my anxieties; and see if there is any wicked way in me, and lead me in the way everlasting.”
— Psalm 139:23–24
That is a dangerous prayer.
Because when I ask God to search me, I am giving Him permission to reveal what I would rather hide.
But it is also a beautiful prayer.
Because God does not expose darkness to destroy us.
He calls His people out of darkness and into His ways.
Teshuvah Is Always an Open Door
When I recognize something wicked in my life, I do not have to remain there.
The Tanakh repeatedly calls God's people to return.
Isaiah says:
“Let the wicked forsake his way, and the unrighteous man his thoughts; let him return to the LORD, and He will have mercy on him; and to our God, for He will abundantly pardon.”
— Isaiah 55:7
This is the heart of teshuvah—turning back.
God does not merely say, “You have failed.”
He says, in effect:
Come back.
Turn away from the wicked way.
Turn away from the destructive thought.
Turn away from the sinful behavior.
Turn back toward God.
The goal of holiness is not perfectionism.
It is faithful returning.
God Desires a People Who Walk in His Ways
Micah asks one of the great questions of Scripture:
“With what shall I come before the LORD, and bow myself before the High God?”
— Micah 6:6
The answer follows:
“He has shown you, O man, what is good; and what does the LORD require of you but to do justly, to love mercy, and to walk humbly with your God?”
— Micah 6:8
There it is.
Justice.
Mercy.
Humility.
Walking with God.
These qualities matter even in times of conflict.
In fact, they may matter especially then.
It is easy to talk about righteousness when nothing is being demanded of me.
But when I am angry, can I still love mercy?
When I have power, can I still walk humbly?
When I have been wronged, can I still pursue justice without becoming consumed by revenge?
When I am afraid, can I still walk with God?
“Keep Yourself”
I keep returning to those words:
“Keep yourself.”
There is personal responsibility here.
I cannot control everything happening around me.
I cannot control the behavior of my enemies.
I cannot control other people's decisions.
I cannot control whether someone treats me fairly.
I cannot control every circumstance.
But I can ask:
What will I allow those circumstances to produce in me?
Joshua and Caleb stood among people who were terrified of the inhabitants of Canaan.
But Caleb responded differently:
“Let us go up at once and take possession, for we are well able to overcome it.”
— Numbers 13:30
His courage was rooted in trust.
The surrounding fear did not determine his faith.
Likewise, the wickedness around me does not have to determine the condition of my heart.
We Are Called to Be Different
Israel was called to be a distinct people.
God told Israel:
“You shall be to Me a kingdom of priests and a holy nation.”
— Exodus 19:6
That calling involved being different.
Not different merely for the sake of being different.
Different because they belonged to God.
Their worship was different.
Their calendar was different.
Their dietary practices were different.
Their treatment of others was different.
Their sexual morality was different.
Their relationship to justice was different.
Their understanding of God was different.
They were called to reflect the character of the One who had redeemed them.
The same question confronts me today:
Can people see whom I belong to by the way I live?
Holiness Does Not Mean Isolation
There is an important distinction here.
Keeping ourselves from wickedness does not mean abandoning the world.
Israel had enemies, neighbors, merchants, travelers, foreigners, and people from many nations around them.
The command was not:
“Hide from everyone.”
It was:
“Keep yourself from every wicked thing.”
Holiness is not isolation.
Holiness is devotion.
I can live among people without adopting every value around me.
I can love people without approving every behavior.
I can show mercy without abandoning truth.
I can pursue peace without compromising righteousness.
I can stand firmly for what God commands while refusing to become hateful.
The Strongest Weapon Is a Faithful Heart
When Israel went to war, weapons mattered.
Strategy mattered.
Courage mattered.
But Deuteronomy reveals something deeper.
God cared about the spiritual condition of the camp.
Why?
Because Israel's ultimate confidence was not in military strength.
Psalm 33 declares:
“No king is saved by the multitude of an army; a mighty man is not delivered by great strength.”
— Psalm 33:16
And then:
“Behold, the eye of the LORD is on those who fear Him, on those who hope in His mercy.”
— Psalm 33:18
The strength of God's people has always been connected to their relationship with God.
What Happens When We Forget Holiness?
The Tanakh repeatedly shows what happens when Israel forgets God's ways.
The people become spiritually compromised.
Justice is corrupted.
Idolatry enters.
The poor are neglected.
Sexual immorality spreads.
Pride grows.
Worship becomes empty.
Eventually, the nation suffers the consequences.
The prophets continually call Israel back.
Isaiah cries:
“Wash yourselves, make yourselves clean; put away the evil of your doings from before My eyes. Cease to do evil, learn to do good.”
— Isaiah 1:16–17
Notice the progression.
Wash.
Put away evil.
Cease to do evil.
Learn to do good.
Holiness is not merely about avoiding something.
It is about becoming people who actively practice what is good.
A Holy Camp Becomes a Witness
When God's people live differently, their lives become a testimony.
Deuteronomy 4 says that Israel's obedience would cause surrounding nations to recognize their wisdom:
“Surely I have taught you statutes and judgments, just as the LORD my God commanded me… Therefore be careful to observe them; for this is your wisdom and your understanding in the sight of the peoples.”
— Deuteronomy 4:5–6
Holiness has a public dimension.
What happens inside God's people eventually becomes visible outside.
Our choices speak.
Our integrity speaks.
Our marriages speak.
Our treatment of strangers speaks.
Our treatment of the poor speaks.
Our business practices speak.
Our words speak.
Our reactions speak.
Our forgiveness speaks.
Our refusal to participate in wickedness speaks.
When the Battle Gets Fierce, Guard the Camp
Perhaps this is the lesson I need most from Deuteronomy 23:9.
The battle is not an excuse to abandon the camp.
When life becomes difficult, I need to become more intentional about holiness—not less.
When I am angry, I need to guard my words.
When I am afraid, I need to guard my faith.
When I am tempted, I need to guard my heart.
When I am successful, I need to guard against pride.
When I am wounded, I need to guard against bitterness.
When I am powerful, I need to guard against abusing that power.
When I am surrounded by wickedness, I need to guard against becoming wicked myself.
The battle may be outside.
But I must guard what happens inside.
“For the LORD Your God Is Walking Among You”
I cannot read Deuteronomy 23:9 without connecting it to verse 14.
The reason Israel was commanded to remain holy was profoundly personal:
“The LORD your God walks in the midst of your camp.”
That is the foundation.
God is there.
Therefore, be holy.
God is there.
Therefore, guard yourself.
God is there.
Therefore, remove wickedness.
God is there.
Therefore, walk differently.
God is there.
Therefore, do not allow fear, anger, lust, pride, hatred, greed, or bitterness to take control.
The presence of God changes the way I live.
My Prayer for the Battle
When I think about this command, I no longer see Deuteronomy 23:9 as merely an ancient military regulation.
I see an invitation to examine my own life.
Every day, I face battles.
Some are external.
Some are internal.
Some are obvious.
Some are invisible.
And in every battle, I need to remember that my first responsibility is not simply to defeat what is outside me.
It is to remain faithful to God within me.
David's prayer becomes my prayer:
“Create in me a clean heart, O God, and renew a steadfast spirit within me.”
— Psalm 51:10
I want a clean heart.
I want a steadfast spirit.
I want to walk humbly with God.
I want to love mercy.
I want to do justice.
I want to turn away from wickedness.
I want to remember God when I am afraid.
I want to remember Him when I succeed.
I want to remember Him when I am wounded.
I want to remember Him when I am angry.
And when the battle becomes fierce, I want to hear the ancient command again:
“When the army goes out against your enemies, then keep yourself from every wicked thing.”
— Deuteronomy 23:9
Because the enemy outside the camp does not determine who I become.
God does.
And if the LORD walks in the midst of the camp, then I want my camp—and my heart—to be a place where His holiness is honored.
A Final Reflection
I can spend enormous amounts of energy identifying the enemies around me.
But Deuteronomy invites me to begin somewhere closer to home:
What is happening inside my camp?
What needs to be removed?
What needs to be surrendered?
What needs to be cleansed?
What needs to be restored?
Where have I allowed fear to replace trust?
Where have I allowed anger to replace mercy?
Where have I allowed pride to replace humility?
Where have I allowed compromise to replace obedience?
And where is God calling me back?
The answer begins with teshuvah.
It begins with turning.
It begins with remembering.
It begins with guarding the heart.
And it begins with recognizing the holy reality declared in Deuteronomy:
The LORD your God walks in the midst of the camp.
So when the battle comes, I will not only ask God to give me victory over my enemies.
I will ask Him to give me victory over everything within me that would pull me away from Him.
Because sometimes the most important battlefield is not the one in front of me.
It is the one within me.