Jeroboam prepared an ambush behind them; his army was in front of Judah, and the ambush was behind them.