King James Version
The LORD hath made all things for himself: yea, even the wicked for the day of evil.English Standard Version
The LORD has made everything for its purpose, even the wicked for the day of trouble.New International Version
The LORD works out everything for his own ends- even the wicked for a day of disaster.