31 The Israelites served the Lord during the lifetime of Joshua and during the lifetimes of the older leaders who lived after Joshua who had seen what the Lord had done for Israel.