The LORD shall trouble thee this day. And all Israel stoned him with stones, and burned them with fire, after they had stoned them with stones. 7:25
Trivia: What did Joshua say the Israelites should keep away from during the Jericho massacre?
This verse says that Ai was never again occupied after it was destroyed by Joshua. But Nehemiah (7:32) lists it among the cities of Israel at the time of the Babylonian captivity. 8:28
And the LORD gave unto Israel all the land which he sware to give unto their fathers; and they possessed it, and dwelt therein. 21:43-45
According to these verses, God fulfilled his promise to give the Israelites all of the lands that they encountered. But in several places the Bible tells us that these promises were not kept.