Wherefore Adoni-zedek king of Jerusalem sent unto Hoham king of Hebron, and unto Piram king of Jarmuth, and unto Japhia king of Lachish, and unto Debir king of Eglon, saying,
Joshua 10:3 stands within the account of Joshua 9-10 concerning Israel's league with the Gibeonites. The Gibeonites were neighbors of Israel who made a treaty with Israel. That neighboring relationship and treaty provide the setting for the events connected with Gibeon in which this verse occurs.
Adoni-zedek king of Jerusalem sent to the kings of Hebron, Jarmuth, Lachish and Eglon, forming a league of five Canaanite kings against Israel under Joshua. That sending introduces the battle at Gibeon, in which Israel fought and defeated those five kings. In that conflict the Lord defeated the enemy with hailstones, and at Joshua's command the sun and moon stood still. The day was lengthened so Joshua could finish the battle, yet it remained one day measured by the sun and did not change the weekly sequence or the seventh-day Sabbath. The verse belongs to the record of Israel conquering several small kingdoms, where sparing their people would have been a false mercy because they would have continued to produce the same kind of offspring. In this chapter soul means a person, a living creature, so the statements about destroying and killing all the souls mean that persons were slain. The original wording speaks of dead soul. This use supports the sense of living soul in Genesis 2:7 as a living person or creature, the same sense as Adam becoming a living soul, not a separate person dwelling inside the body. The soul spoken of here is not immortal or never dying but is the life of the flesh. By naming Jerusalem, the verse shows that name was already in use during the Canaanite period at the time of the conquest, a fact confirmed by the Tel-el-Amarna letters which name Jerusalem.