Jeroboam had sent an ambush around to come upon them from behind. Thus his troops were in front of Judah, and the ambush was behind them.