Wisdom 12:27

27 For when in their suffering they became incensed at those creatures which they had thought to be gods, being punished by means of them, they saw and recognized as the true God him whom they had before refused to know. Therefore the utmost condemnation came upon them.

Wisdom 12:27 In-Context

25 Therefore, as to thoughtless children, thou didst send thy judgment to mock them.
26 But those who have not heeded the warning of light rebukes will experience the deserved judgment of God.
27 For when in their suffering they became incensed at those creatures which they had thought to be gods, being punished by means of them, they saw and recognized as the true God him whom they had before refused to know. Therefore the utmost condemnation came upon them.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the 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.