Wisdom 18:11

11 Masters suffered the same punishment as their slaves; the king endured the same loss as the common people.

Wisdom 18:11 In-Context

9 During all this time devout people from this righteous nation were secretly offering sacrifices, giving their word to each other that they would keep God's law and share each other's blessings and dangers. Already they were chanting those ancient hymns of praise.
10 But their enemies' pitiful cries of grief echoed everywhere, as they mourned for their dead children.
11 Masters suffered the same punishment as their slaves; the king endured the same loss as the common people.
12 There were too many dead bodies to count. There were not enough people left to bury them all. In a single moment their dearest children died; all of them met death in the same way.
13 These people had paid no attention to any warning, but relied instead on their magical powers. But when their first-born sons were killed, then they recognized that Israel was God's son.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.