Proverbs 16:4

Leeser(i) 4 Every thing hath the Lord wrought for its destined end; yes, even the wicked for the day of unhappiness.