Wisdom 11:16

16 so that they might learn that one is punished by the very things by which one sins.

Wisdom 11:16 In-Context

14 For though they had mockingly rejected him who long before had been cast out and exposed, at the end of the events they marveled at him, when they felt thirst in a different way from the righteous.
15 In return for their foolish and wicked thoughts, which led them astray to worship irrational serpents and worthless animals, you sent upon them a multitude of irrational creatures to punish them,
16 so that they might learn that one is punished by the very things by which one sins.
17 For your all-powerful hand, which created the world out of formless matter, did not lack the means to send upon them a multitude of bears, or bold lions,
18 or newly-created unknown beasts full of rage, or such as breathe out fiery breath, or belch forth a thick pall of smoke, or flash terrible sparks from their eyes;
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.