טָבְע֣וּ ג֭וֹיִם בְּשַׁ֣חַת עָשׂ֑וּ בְּרֶֽשֶׁת־ז֥וּ טָ֝מָ֗נוּ נִלְכְּדָ֥ה רַגְלָֽם׃
列國陷在自己所挖的坑裡;他們暗藏的網羅,纏住了自己的腳。
Midrash Tehillim
The nations were drowned in the pit that Esau made. This refers to Pharaoh. In this net they hid, this refers to Sisera. Their foot was caught, this refers to Sennacherib.