Proverbs 16 4
The Lord has a purpose in everything he does, even the wicked for the day of trouble.
Compare with other 3 random translations
NIV Proverbs 16:4The Lord works out everything to its proper end— even the wicked for a day of disaster.
LSV Proverbs 16:4YHWH has worked all things for Himself, and also the wicked—for a day of evil.
KJV Proverbs 16:4The LORD hath made all things for himself: yea, even the wicked for the day of evil.