Saul reigned one year; and when he had reigned two years over Israel, Saul chose for himself three thousand men of Israel. Two thousand were with Saul in Michmash and in the mountains of Bethel, and a thousand were with Jonathan in Gibeah of Benjamin. The rest of the people he sent away, every man to his tent. And Jonathan attacked the garrison of the Philistines that was in Geba, and the Philistines heard of it. Then Saul blew the trumpet throughout all the land, saying, “Let the Hebrews hear!” Now all Israel heard it said that Saul had attacked a garrison of the Philistines, and that Israel had also become an abomination to the Philistines. And the people were called together to Saul at Gilgal. Then the Philistines gathered together to fight with Israel, thirty thousand chariots and six thousand horsemen, and people as the sand which is on the seashore in multitude. And they came up and encamped in Michmash, to the east of Beth Aven. When the men of Israel saw that they were in danger (for the people were distressed), then the people hid in caves, in thickets, in rocks, in holes, and in pits. And some of the Hebrews crossed over the Jordan to the land of Gad and Gilead. As for Saul, he was still in Gilgal, and all the people followed him trembling. Then he waited seven days, according to the time set by Samuel. But Samuel did not come to Gilgal; and the people were scattered from him. So Saul said, “Bring a burnt offering and peace offerings here to me.” And he offered the burnt offering. Now it happened, as soon as he had finished presenting the burnt offering, that Samuel came; and Saul went out to meet him, that he might greet him. And Samuel said, “What have you done?” Saul said, “When I saw that the people were scattered from me, and that you did not come within the days appointed, and that the Philistines gathered together at Michmash, then I said, ‘The Philistines will now come down on me at Gilgal, and I have not made supplication to the Lord .’ Therefore I felt compelled, and offered a burnt offering.” And Samuel said to Saul, “You have done foolishly. You have not kept the commandment of the Lord your God, which He commanded you. For now the Lord would have established your kingdom over Israel forever. But now your kingdom shall not continue. The Lord has sought for Himself a man after His own heart, and the Lord has commanded him to be commander over His people, because you have not kept what the Lord commanded you.” I Samuel 13:1-14 NKJV
Now Deborah, a prophetess, the wife of Lapidoth, was judging Israel at that time. And she would sit under the palm tree of Deborah between Ramah and Bethel in the mountains of Ephraim. And the children of Israel came up to her for judgment. Then she sent and called for Barak the son of Abinoam from Kedesh in Naphtali, and said to him, “Has not the Lord God of Israel commanded, ‘Go and deploy troops at Mount Tabor; take with you ten thousand men of the sons of Naphtali and of the sons of Zebulun; and against you I will deploy Sisera, the commander of Jabin’s army, with his chariots and his multitude at the River Kishon; and I will deliver him into your hand’?” And Barak said to her, “If you will go with me, then I will go; but if you will not go with me, I will not go!” So she said, “I will surely go with you; nevertheless there will be no glory for you in the journey you are taking, for the Lord will sell Sisera into the hand of a woman.”
Then Deborah arose and went with Barak to Kedesh. And Barak called Zebulun and Naphtali to Kedesh; he went up with ten thousand men under his command, and Deborah went up with him. Now Heber the Kenite, of the children of Hobab the father-in-law of Moses, had separated himself from the Kenites and pitched his tent near the terebinth tree at Zaanaim, which is beside Kedesh. And they reported to Sisera that Barak the son of Abinoam had gone up to Mount Tabor. So Sisera gathered together all his chariots, nine hundred chariots of iron, and all the people who were with him, from Harosheth Hagoyim to the River Kishon. Then Deborah said to Barak, “Up! For this is the day in which the Lord has delivered Sisera into your hand. Has not the Lord gone out before you?” So Barak went down from Mount Tabor with ten thousand men following him. And the Lord routed Sisera and all his chariots and all his army with the edge of the sword before Barak; and Sisera alighted from his chariot and fled away on foot. But Barak pursued the chariots and the army as far as Harosheth Hagoyim, and all the army of Sisera fell by the edge of the sword; not a man was left.
However, Sisera had fled away on foot to the tent of Jael, the wife of Heber the Kenite; for there was peace between Jabin king of Hazor and the house of Heber the Kenite. And Jael went out to meet Sisera, and said to him, “Turn aside, my Lord, turn aside to me; do not fear.” And when he had turned aside with her into the tent, she covered him with a blanket. Then he said to her, “Please give me a little water to drink, for I am thirsty.” So she opened a jug of milk, gave him a drink, and covered him. And he said to her, “Stand at the door of the tent, and if any man comes and inquires of you, and says, ‘Is there any man here?’ you shall say, ‘No.’ ” Then Jael, Heber’s wife, took a tent peg and took a hammer in her hand, and went softly to him and drove the peg into his temple, and it went down into the ground; for he was fast asleep and weary. So he died. And then, as Barak pursued Sisera, Jael came out to meet him, and said to him, “Come, I will show you the man whom you seek.” And when he went into her tent, there lay Sisera, dead with the peg in his temple. So on that day God subdued Jabin king of Canaan in the presence of the children of Israel. And the hand of the children of Israel grew stronger and stronger against Jabin king of Canaan, until they had destroyed Jabin king of Canaan. Judges 4:4-24 NKJV
Now the Lord said to Joshua: “Do not be afraid, nor be dismayed; take all the people of war with you, and arise, go up to Ai. See, I have given into your hand the king of Ai, his people, his city, and his land. And you shall do to Ai and its king as you did to Jericho and its king. Only its spoil and its cattle you shall take as booty for yourselves. Lay an ambush for the city behind it.” So Joshua arose, and all the people of war, to go up against Ai; and Joshua chose thirty thousand mighty men of valor and sent them away by night. And he commanded them, saying: “Behold, you shall lie in ambush against the city, behind the city. Do not go very far from the city, but all of you be ready. Then I and all the people who are with me will approach the city; and it will come about, when they come out against us as at the first, that we shall flee before them. For they will come out after us till we have drawn them from the city, for they will say, ‘ They are fleeing before us as at the first.’ Therefore we will flee before them. Then you shall rise from the ambush and seize the city, for the Lord your God will deliver it into your hand. And it will be, when you have taken the city, that you shall set the city on fire. According to the commandment of the Lord you shall do. See, I have commanded you.” Joshua therefore sent them out; and they went to lie in ambush, and stayed between Bethel and Ai, on the west side of Ai; but Joshua lodged that night among the people. Then Joshua rose up early in the morning and mustered the people, and went up, he and the elders of Israel, before the people to Ai. And all the people of war who were with him went up and drew near; and they came before the city and camped on the north side of Ai. Now a valley lay between them and Ai. So he took about five thousand men and set them in ambush between Bethel and Ai, on the west side of the city. And when they had set the people, all the army that was on the north of the city, and its rear guard on the west of the city, Joshua went that night into the midst of the valley. Now it happened, when the king of Ai saw it, that the men of the city hurried and rose early and went out against Israel to battle, he and all his people, at an appointed place before the plain. But he did not know that there was an ambush against him behind the city. And Joshua and all Israel made as if they were beaten before them, and fled by the way of the wilderness. So all the people who were in Ai were called together to pursue them. And they pursued Joshua and were drawn away from the city. There was not a man left in Ai or Bethel who did not go out after Israel. So they left the city open and pursued Israel. Then the Lord said to Joshua, “Stretch out the spear that is in your hand toward Ai, for I will give it into your hand.” And Joshua stretched out the spear that was in his hand toward the city. So those in ambush arose quickly out of their place; they ran as soon as he had stretched out his hand, and they entered the city and took it, and hurried to set the city on fire. And when the men of Ai looked behind them, they saw, and behold, the smoke of the city ascended to heaven. So they had no power to flee this way or that way, and the people who had fled to the wilderness turned back on the pursuers. Now when Joshua and all Israel saw that the ambush had taken the city and that the smoke of the city ascended, they turned back and struck down the men of Ai. Then the others came out of the city against them; so they were caught in the midst of Israel, some on this side and some on that side. And they struck them down, so that they let none of them remain or escape. But the king of Ai they took alive, and brought him to Joshua. And it came to pass when Israel had made an end of slaying all the inhabitants of Ai in the field, in the wilderness where they pursued them, and when they all had fallen by the edge of the sword until they were consumed, that all the Israelites returned to Ai and struck it with the edge of the sword. So it was that all who fell that day, both men and women, were twelve thousand—all the people of Ai. For Joshua did not draw back his hand, with which he stretched out the spear, until he had utterly destroyed all the inhabitants of Ai. Only the livestock and the spoil of that city Israel took as booty for themselves, according to the word of the Lord which He had commanded Joshua. So Joshua burned Ai and made it a heap forever, a desolation to this day. And the king of Ai he hanged on a tree until evening. And as soon as the sun was down, Joshua commanded that they should take his corpse down from the tree, cast it at the entrance of the gate of the city, and raise over it a great heap of stones that remains to this day. Joshua 8:1-29 NKJV