You need to study the Scriptures. Not the English mistaken translations that are produced at the whims of man.
Yes look at the variance in translating the verse.
New International Version
The LORD works out everything to its proper end— even the wicked for a day of disaster.
New Living Translation
The LORD has made everything for his own purposes, even the wicked for a day of disaster.
English Standard Version
The LORD has made everything for its purpose, even the wicked for the day of trouble.
Berean Standard Bible
The LORD has made everything for His purpose—even the wicked for the day of disaster.
King James Bible
The LORD hath made all
things for himself: yea, even the wicked for the day of evil.
New King James Version
The LORD has made all for Himself, Yes, even the wicked for the day of doom.
New American Standard Bible
The LORD has made everything for its own purpose, Even the wicked for the day of evil.
NASB 1995
The LORD has made everything for its own purpose, Even the wicked for the day of evil.
NASB 1977
The LORD has made everything for its own purpose, Even the wicked for the day of evil.
Legacy Standard Bible
Yahweh has made everything for its own purpose, Even the wicked for the day of evil.
Amplified Bible
The LORD has made everything for its own purpose, Even the wicked [according to their role] for the day of evil.
Christian Standard Bible
The LORD has prepared everything for his purpose — even the wicked for the day of disaster.
Holman Christian Standard Bible
The LORD has prepared everything for His purpose— even the wicked for the day of disaster.
American Standard Version
Jehovah hath made everything for its own end; Yea, even the wicked for the day of evil.
Aramaic Bible in Plain English
All the works of LORD JEHOVAH are for those that submit to him, and the evil are kept for the day of evil.
Contemporary English Version
The LORD has a reason for everything he does, and he lets evil people live only to be punished.
Douay-Rheims Bible
The Lord hath made all things for himself: the wicked also for the evil day.
English Revised Version
The LORD hath made every thing for its own end: yea, even the wicked for the day of evil.
GOD'S WORD® Translation
The LORD has made everything for his own purpose, even wicked people for the day of trouble.
Good News Translation
Everything the LORD has made has its destiny; and the destiny of the wicked is destruction.
International Standard Version
The LORD made everything answerable to him, including the wicked at the time of trouble.
JPS Tanakh 1917
The LORD hath made every things for His own purpose, Yea, even the wicked for the day of evil.
Literal Standard Version
YHWH has worked all things for Himself, | And also the wicked—for a day of evil.
Majority Standard Bible
The LORD has made everything for His purpose—even the wicked for the day of disaster.
New American Bible
The LORD has made everything for a purpose, even the wicked for the evil day.
NET Bible
The LORD works everything for its own ends--even the wicked for the day of disaster.
New Revised Standard Version
The LORD has made everything for its purpose, even the wicked for the day of trouble.
New Heart English Bible
The LORD has made everything for its own end--yes, even the wicked for the day of evil.
Webster's Bible Translation
The LORD hath made all things for himself: yes, even the wicked for the day of evil.
World English Bible
Yahweh has made everything for its own end— yes, even the wicked for the day of evil.
Young's Literal Translation
All things hath Jehovah wrought for Himself, And also the wicked worketh for a day of evil.