Proverbs 27:12

NIV
New International Version

12The prudent see danger and take refuge,
but the simple keep going and pay the penalty.