Judges 2:18

18 The LORD was moved by Israel's groaning under those who oppressed and crushed them. So the LORD would raise up leaders for them, and the LORD would be with the leader, and he would rescue Israel from the power of their enemies as long as that leader lived.