Joshua 24:9-11
24:9 Balak son of Zippor, king of Moab, launched an attack against Israel. He summoned Balaam son of Beor to call down judgment on you.
24:10 I refused to respond to Balaam; he kept prophesying good things about you, and I rescued you from his power.
24:11 You crossed the Jordan and came to Jericho. The leaders of Jericho, as well as the Amorites, Perizzites, Canaanites, Hittites, Girgashites, Hivites, and Jebusites, fought with you, but I handed them over to you.