22 when the peoples and the kingdoms assemble to worship the LORD.

Read Psalm 102:22 Using Other Translations

When the people are gathered together, and the kingdoms, to serve the LORD.
when peoples gather together, and kingdoms, to worship the LORD.
when multitudes gather together and kingdoms come to worship the LORD .