Joshua 1:5

1:5 No one will be able to resist you all the days of your life. As I was with Moses, so I will be with you. I will not abandon you or leave you alone.

Joshua 10:6

10:6 The men of Gibeon sent this message to Joshua at the camp in Gilgal, “Do not abandon your subjects! Rescue us! Help us! For all the Amorite kings living in the hill country are attacking us.”

Joshua 24:20

24:20 If you abandon the Lord and worship foreign gods, he will turn against you; he will bring disaster on you and destroy you, though he once treated you well.”