"A pit is dug and is excavated. All those who dig it for themselves, the wicked dig it. And in the end, it will fall into the pit they dug. Their toil will return upon their own heads. This refers to Haman, for everything he planned against Mordecai was turned against him."
I will praise the Lord according to His righteousness. He is the Most High in heaven. Rabbi Levi said, when God makes us superior to others in the world, it is above all, as it is said (Deuteronomy 28:1) "And the Lord your God will make you supreme." What is the reason for saying "I will praise the Lord according to His righteousness"? Rabbi Joshua ben Levi said, wherever you find the downfall of the wicked, there is acknowledgment from above and acknowledgment from below, as it is said, "I will praise the Lord according to His righteousness." What is written at the end of the psalm? "To the chief Musician upon Gittith, A Psalm of David." This refers to Edom. What is written after the psalm (Psalm 9:1)? "To the chief Musician upon Muthlabben, A Psalm of David." This refers to the future. And what is written at the end? "I will praise the Lord with my whole heart." There is acknowledgment from above and acknowledgment from below.