You only understand the meaning of this Bible passage when you see that Solomon not just killed a few of his and his father’s opponents, but that he does justice. Because God wants justice. The whole Bible makes it clear to us that God does not allow injustice. If someone is innocently put to death, that blood must be avenged. After the first murder in the Bible, we read that the blood of the murdered one cries out from the earth to God (Genesis 4:10). That is not some primitive thinking about the soul of the murdered one who is going to take revenge, but it indicates that God sees injustice and wants justice to be done by retribution.
33 Leur sang retombera sur la tête de Joab et sur la tête de ses descendants à perpétuité; mais il y aura paix à toujours, de par l'Eternel, pour David, pour sa postérité, pour sa maison et pour son trône.