2 Samuel 12:31

David brought out the people who were there and put them to work with saws, iron picks, and axes, and he made them work at the brick kilns. He did the same to all the Ammonite cities. Then David and all his troops returned to Jerusalem.

Note Literally put them under saws

Note Literally and he made them pass through the brick kilns.

BSB · Berean Standard Bible
And he brought forth the people that were therein, and put them under saws, and under harrows of iron, and under axes of iron, and made them pass through the brickkiln: and thus did he unto all the cities of the children of Ammon. So David and all the people returned unto Jerusalem.
KJV · King James Version
He brought out the people who were in it, and put them to work under saws, under iron picks, under axes of iron, and made them go to the brick kiln; and he did so to all the cities of the children of Ammon. Then David and all the people returned to Jerusalem.
WEB · World English Bible
And he brought forth the people that were therein, and put them under saws, and under harrows of iron, and under axes of iron, and made them pass through the brickkiln: and thus did he unto all the cities of the children of Ammon. And David and all the people returned unto Jerusalem.
ASV · American Standard Version

Related passages

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

and put them
Rather, as the particle [b] frequently signifies, "And he put them to saws, and to harrows, and to axes," etc., as we say, to put a person to the plough, to the anvil, to the last, etc.
1 Chronicles 20:3
Also
2 Samuel 8:2; Psalm 21:8, 9; Amos 1:3