Proverbs 16:4

The Lord has made everything for its purpose,

even the wicked for the day of trouble.