31 As long as Joshua lived, the people of Israel served the Lord, and after his death they continued to do so as long as those leaders were alive who had seen for themselves everything that the Lord had done for Israel.