Joshua told the people of Israel they could not serve Yahweh because of their transgressions and sins.