2 Samuel 8:2

David also defeated the Moabites, made them lie down on the ground, and measured them off with a cord. He measured off with two lengths those to be put to death, and with one length those to be spared. So the Moabites became subject to David and brought him tribute.
BSB · Berean Standard Bible
And he smote Moab, and measured them with a line, casting them down to the ground; even with two lines measured he to put to death, and with one full line to keep alive. And so the Moabites became David’s servants, and brought gifts.
KJV · King James Version
He defeated Moab, and measured them with the line, making them to lie down on the ground; and he measured two lines to put to death, and one full line to keep alive. The Moabites became servants to David, and brought tribute.
WEB · World English Bible
And he smote Moab, and measured them with the line, making them to lie down on the ground; and he measured two lines to put to death, and one full line to keep alive. And the Moabites became servants to David, and brought tribute.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

he smote
Numbers 24:17; Judges 3:29, 30; 1 Samuel 14:47; Psalm 60:8; Psalm 83:6; Psalm 108:9
measured
2 Samuel 12:31
And so
2 Samuel 8:6, 12–14; 2 Kings 1:1; 2 Kings 3:4–27; 1 Chronicles 18:2
brought gifts
1 Samuel 10:27; 2 Chronicles 26:8; Psalm 72:10, 11; Isaiah 36:16