The other day I was studying Proverbs 26:27, where King Solomon observes, "He who digs a pit will fall into it." One of my favorite movies illustrates this wisdom:
"What is it, the first hole I dug?" Tommy says after murdering Spider. Fateful words given how he turned out:
The ArtScroll edition of Proverbs comments:
"R' Saadiah Gaon cites the case of King Darius's officials who were cast into the lion's den into which they had thrown Daniel. Perhaps the most prominent example of a man who 'dug his own grave' is Haman, who was hanged on the very gallows that he had built for Mordechai."
To express this theme in Hebrew, "Midah Keneged Midah" (Measure for Measure).