1Then the Lord said to Joshua, ‘Do not be afraid; do not be discouraged. Take the whole army with you, and go up and attack Ai. For I have delivered into your hands the king of Ai, his people, his city and his land.2You shall do to Ai and its king as you did to Jericho and its king, except that you may carry off their plunder and livestock for yourselves. Set an ambush behind the city.’3So Joshua and the whole army moved out to attack Ai. He chose thirty thousand of his best fighting men and sent them out at night4with these orders: ‘Listen carefully. You are to set an ambush behind the city. Don’t go very far from it. All of you be on the alert.5I and all those with me will advance on the city, and when the men come out against us, as they did before, we will flee from them.6They will pursue us until we have lured them away from the city, for they will say, “They are running away from us as they did before.” So when we flee from them,7you are to rise up from ambush and take the city. The Lord your God will give it into your hand.8When you have taken the city, set it on fire. Do what the Lord has commanded. See to it; you have my orders.’9Then Joshua sent them off, and they went to the place of ambush and lay in wait between Bethel and Ai, to the west of Ai – but Joshua spent that night with the people.10Early the next morning Joshua mustered his army, and he and the leaders of Israel marched before them to Ai.11The entire force that was with him marched up and approached the city and arrived in front of it. They set up camp north of Ai, with the valley between them and the city.12Joshua had taken about five thousand men and set them in ambush between Bethel and Ai, to the west of the city.13So the soldiers took up their positions – with the main camp to the north of the city and the ambush to the west of it. That night Joshua went into the valley.14When the king of Ai saw this, he and all the men of the city hurried out early in the morning to meet Israel in battle at a certain place overlooking the Arabah. But he did not know that an ambush had been set against him behind the city.15Joshua and all Israel let themselves be driven back before them, and they fled towards the wilderness.16All the men of Ai were called to pursue them, and they pursued Joshua and were lured away from the city.17Not a man remained in Ai or Bethel who did not go after Israel. They left the city open and went in pursuit of Israel.18Then the Lord said to Joshua, ‘Hold out towards Ai the javelin that is in your hand, for into your hand I will deliver the city.’ So Joshua held out towards the city the javelin that was in his hand.19As soon as he did this, the men in the ambush rose quickly from their position and rushed forward. They entered the city and captured it and quickly set it on fire.20The men of Ai looked back and saw the smoke of the city rising up into the sky, but they had no chance to escape in any direction; the Israelites who had been fleeing towards the wilderness had turned back against their pursuers.21For when Joshua and all Israel saw that the ambush had taken the city and that smoke was going up from the city, they turned round and attacked the men of Ai.22Those in the ambush also came out of the city against them, so that they were caught in the middle, with Israelites on both sides. Israel cut them down, leaving them neither survivors nor fugitives.23But they took the king of Ai alive and brought him to Joshua.24When Israel had finished killing all the men of Ai in the fields and in the wilderness where they had chased them, and when every one of them had been put to the sword, all the Israelites returned to Ai and killed those who were in it.25Twelve thousand men and women fell that day – all the people of Ai.26For Joshua did not draw back the hand that held out his javelin until he had destroyed[1] all who lived in Ai.27But Israel did carry off for themselves the livestock and plunder of this city, as the Lord had instructed Joshua.28So Joshua burned Ai[2] and made it a permanent heap of ruins, a desolate place to this day.29He impaled the body of the king of Ai on a pole and left it there until evening. At sunset, Joshua ordered them to take the body from the pole and throw it down at the entrance of the city gate. And they raised a large pile of rocks over it, which remains to this day.
The covenant renewed at Mount Ebal
30Then Joshua built on Mount Ebal an altar to the Lord, the God of Israel,31as Moses the servant of the Lord had commanded the Israelites. He built it according to what is written in the Book of the Law of Moses – an altar of uncut stones, on which no iron tool had been used. On it they offered to the Lord burnt offerings and sacrificed fellowship offerings.32There, in the presence of the Israelites, Joshua wrote on stones a copy of the law of Moses.33All the Israelites, with their elders, officials and judges, were standing on both sides of the ark of the covenant of the Lord, facing the Levitical priests who carried it. Both the foreigners living among them and the native-born were there. Half of the people stood in front of Mount Gerizim and half of them in front of Mount Ebal, as Moses the servant of the Lord had formerly commanded when he gave instructions to bless the people of Israel.34Afterwards, Joshua read all the words of the law – the blessings and the curses – just as it is written in the Book of the Law.35There was not a word of all that Moses had commanded that Joshua did not read to the whole assembly of Israel, including the women and children, and the foreigners who lived among them.
1"Du ska inte vara rädd eller modlös", sa Herren till Josua. "Samla nu hela armén och gå till Ai, för nu är det dags att besegra folket där. Jag har gett dig både kungen och allt folket.2Ni ska göra med dem på samma sätt som ni gjorde med Jeriko och kungen där, men den här gången ska ni få ta byte åt er själva, boskap och allt annat. Lägg er i bakhåll på andra sidan staden."3-4Innan huvuddelen av styrkan gav sig iväg till Ai, skickade Josua 30.000 av sina modigaste soldater för att lägga sig i bakhåll på andra sidan staden beredda att ingripa.5"Det här är vår plan", förklarade han. "När huvudstyrkan går till anfall, kommer männen i Ai att ge sig ut för att strida, precis som de gjorde förra gången.6Vi ska då fly för dem och på så sätt lura dem att lämna staden, för då tänker de: 'Israeliterna flyr igen, precis som förra gången!'7Då ska ni rusa fram från ert bakhåll och springa in i staden, för Herren ska ge er den.8Sätt eld på staden, som Herren har befallt! Verkställ nu min order!"9Samma kväll marscherade de iväg och lade sig i bakhåll mellan Betel och västra sidan av Ai, medan Josua och resten av armén stannade kvar i lägret vid Jeriko.10Tidigt morgonen därpå mönstrade Josua sina trupper och begav sig iväg mot Ai, följd av de äldste i Israel.11-13De stannade vid dalen som ligger norr om staden. Den kvällen sände Josua ytterligare 5.000 man att förena sig med dem som låg i bakhåll väster om staden. Själv stannade han kvar i dalen över natten.14När kungen i Ai såg israeliterna på andra sidan dalen gick han och hans män tidigt på morgonen till anfall mot dem på Arabas slätt. Men han visste inte att det fanns män som låg i bakhåll på andra sidan staden.15Josua och israeliterna flydde genom öknen som de planerat,16och alla soldater i staden fick order om att förfölja dem, vilket betydde att staden blev helt utan försvar.17Det fanns inte en enda soldat kvar i Ai eller Betel, och stadsportarna stod vidöppna.18Då sa Herren till Josua: "Räck ut ditt spjut mot Ai, för jag ska ge dig staden. "Josua gjorde som Herren sagt,19och när männen som låg i bakhåll såg denna signal, rusade de upp och in i staden och tände eld på den.20-21När männen från Ai då vände sig om fick de se rök bolma upp från staden, och de hade ingenstans att ta vägen. Men när Josua och de trupper han hade med sig såg röken inifrån staden visste de att deras män var där. De vände sig då om och gick till anfall mot sina förföljare och dödade dem.22Då kom också de israeliter som var inne i staden ut och började anfalla fienden bakifrån. Männen från Ai hamnade på så sätt i en fälla och allesammans dödades. Inte en enda kom undan.23Kungen däremot togs till fånga levande och fördes fram inför Josua.24När sedan Israels armé hade dödat alla som fanns utanför staden vände de tillbaka och dödade dem som ännu fanns kvar innanför stadsmurarna.25Hela Ais befolkning, 12.000 personer, utplånades den dagen.26Josua höll nämligen sitt spjut riktat mot Ai till dess den siste av dem som bodde där var död.27Endast boskapen fick leva, och israeliterna behöll bytet för sig själva. Herren hade nämligen sagt till Josua att de skulle göra detta.28Det blev således ingenting kvar av Ai, och än i dag ligger staden i ruiner.29Josua hängde upp kungen från Ai på en påle och lät honom hänga där till kvällen. Vid solnedgången tog han ner kroppen och slängde den framför stadsporten, och man kastade ett stenröse över den, vilket finns där än i dag.
Josua läser lagen för folket
30Josua byggde ett altare åt Herren Gud på berget Ebal,31som Mose hade befallt i sin lagbok: "Gör mig ett altare av stenar som varken är tillhuggna eller bearbetade med verktyg", hade Herren sagt om altaret på berget Ebal. Prästerna offrade där brännoffer och tackoffer till Herren,32och medan folket såg på, ristade Josua in vart och ett av de tio budorden i stenarna.33Allt folket i Israel, även de från andra folk som levde bland dem, och de äldste, ledare och domare, delade sig i två grupper. Den ena gruppen ställde sig vid foten av berget Gerissim och den andra vid Ebal. Mellan dem stod prästerna med arken, beredda att uttala välsignelsen. Allt gjordes enligt de föreskrifter som Mose långt tidigare hade gett dem.34Josua läste sedan upp hela lagen för folket med välsignelsen och förbannelsen, precis som Mose hade skrivit i Guds lagbok.35Varje befallning som Mose hade gett lästes inför hela församlingen, där både kvinnor och barn och alla övriga som bodde tillsammans med israeliterna var med.