2 Chronicles 13:7-17

7 and certain worthless scoundrels gathered about him and defied Rehobo'am the son of Solomon, when Rehobo'am was young and irresolute and could not withstand them.
8 "And now you think to withstand the kingdom of the LORD in the hand of the sons of David, because you are a great multitude and have with you the golden calves which Jerobo'am made you for gods.
9 Have you not driven out the priests of the LORD, the sons of Aaron, and the Levites, and made priests for yourselves like the peoples of other lands? Whoever comes to consecrate himself with a young bull or seven rams becomes a priest of what are no gods.
10 But as for us, the LORD is our God, and we have not forsaken him. We have priests ministering to the LORD who are sons of Aaron, and Levites for their service.
11 They offer to the LORD every morning and every evening burnt offerings and incense of sweet spices, set out the showbread on the table of pure gold, and care for the golden lampstand that its lamps may burn every evening; for we keep the charge of the LORD our God, but you have forsaken him.
12 Behold, God is with us at our head, and his priests with their battle trumpets to sound the call to battle against you. O sons of Israel, do not fight against the LORD, the God of your fathers; for you cannot succeed."
13 Jerobo'am had sent an ambush around to come on them from behind; thus his troops were in front of Judah, and the ambush was behind them.
14 And when Judah looked, behold, the battle was before and behind them; and they cried to the LORD, and the priests blew the trumpets.
15 Then the men of Judah raised the battle shout. And when the men of Judah shouted, God defeated Jerobo'am and all Israel before Abi'jah and Judah.
16 The men of Israel fled before Judah, and God gave them into their hand.
17 Abi'jah and his people slew them with a great slaughter; so there fell slain of Israel five hundred thousand picked men.