Wisdom 11:16

16 and taught them that punishment for sin takes the same form as the sin itself.

Wisdom 11:16 In-Context

14 The Egyptians had refused to have anything to do with that man who, long before as a baby, had been thrown out and exposed; but as things worked out, they came to be amazed at him. The righteous never suffered a thirst like theirs.
15 Their wickedness misled them into silly ideas, so that they worshiped snakes and other disgusting animals, creatures without any powers of reason. Because of this, you punished them with millions of such animals,
16 and taught them that punishment for sin takes the same form as the sin itself.
17 Your almighty power, Lord, created the world out of material that had no form at all. You could easily have punished those people by sending an invasion of bears or savage lions.
18 You could have created new and terrible animals, that could breathe fire or roar and send out clouds of smoke, or shoot out fearful sparks from their eyes.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.