Proverbs 27:12

Amplified Bible (AMP)

A prudent man sees evil and hides himself and avoids it,
But the naive [who are easily misled] continue on and are punished [by suffering the consequences of sin].

Read Proverbs 27:12 in other translations