1 Chronicles 19:10

Now when Joab saw that the battle was set against him before and behind, he chose out of all the choice of Israel, and put them in array against the Syrians.

Cross-reference

2 Samuel 10:9-14 is the parallel account of this same battle, providing additional detail on Joab's strategy.

Psalm 118:11 speaks of being compassed about by enemies, a thematic parallel to Joab's battle being set against him before and behind.