'Executed' in the Bible
David also conquered Moab, then measured them with a cord, making them lie down on the ground. He executed everyone measured out in each two lengths' measurement of the cord, but spared the ones measured out by every third length. Then the Moabites were placed under servitude to David, and made to pay tribute.
David replied, "What do you sons of Zeruiah have in common with me? You've become my enemies today! Should anyone be executed in Israel today? Don't you know that I've been reinstated as king over Israel today?"
One time there was a famine during David's reign that went on for three straight years. David sought the LORD, who said, "Saul and his household are guilty because he executed the Gibeonites."
Then he turned them over to the custody of the Gibeonites, who hanged them on the mountain in the presence of the LORD. All seven of them died at the same time. They were executed during the first days of harvest, just as the barley began to be gathered in.