22 Then Joshua said, “You are witnesses against yourselves that you have chosen to serve the LORD.” “Yes, we are witnesses,” they replied.

Read Joshua 24:22 Using Other Translations

And Joshua said unto the people, Ye are witnesses against yourselves that ye have chosen you the LORD, to serve him. And they said, We are witnesses.
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."
“You are a witness to your own decision,” Joshua said. “You have chosen to serve the LORD .” “Yes,” they replied, “we are witnesses to what we have said.”