Proverbs 27:12 in the King James Version
A prudent man foreseeth the evil, and hideth himself; but the simple pass on, and are punished.
Context
11 Be wise, my son, and bring joy to my heart, then I can answer my tormentor.
12 A prudent man sees danger and takes refuge; but the simple pass on, and suffer for it.
13 Take his garment when he puts up collateral for a stranger. Hold it for a wayward woman!