2 Samuel 13:32anah
Jonadab, the son of Shimeah, David's brother, responded, "Do not let my lord suppose they have put to death all the young men, the king's sons, for Amnon alone is dead; because by the intent of Absalom this has been determined since the day that he violated his sister Tamar.
Absalom's revenge for Tamar's violation ends in Amnon's death.
Deuteronomy 22:24
then you shall bring them both out to the gate of that city and you shall stone them to death; the girl, because she did not cry out in the city, and the man, because he has violated his neighbor's wife. Thus you shall purge the evil from among you.
Law punishes a man who violated his neighbor's wife.