Joshua 24:22

22 Then Joshua said to the people, "You are witnesses against yourselves that you have chosen the Lord, to serve him." And they said, "We are witnesses."

Joshua 24:22 Meaning and Commentary

Joshua 24:22

And Joshua said unto the people
In reply to their answer and resolution:

ye [are] witnesses against yourselves, that ye have chosen you the
Lord God to serve him;
that is, should they, after this choice of him, which they had so publicly declared, desert his service, and go into idolatry, their testimony would rise up against them, and they would, be self-condemned:

and they said, [we are] witnesses;
should we ever apostatize from the Lord and his worship, we are content to have this our witness produced against us.

Joshua 24:22 In-Context

20 If you forsake the Lord and serve foreign gods, then he will turn and do you harm, and consume you, after having done you good."
21 And the people said to Joshua, "No, we will serve the Lord!"
22 Then Joshua said to the people, "You are witnesses against yourselves that you have chosen the Lord, to serve him." And they said, "We are witnesses."
23 He said, "Then put away the foreign gods that are among you, and incline your hearts to the Lord, the God of Israel."
24 The people said to Joshua, "The Lord our God we will serve, and him we will obey."