The LORD works out everything to its proper end – even the wicked for a day of disaster.
NIV
The Lord has made everything [to accommodate itself and contribute] to its own end and His own purpose--even the wicked [are fitted for their role] for the day of calamity and evil.
AMP
The LORD hath made all things for himself: yea, even the wicked for the day of evil.
KJV
Through love and faithfulness sin is atoned for; through the fear of the LORD evil is avoided.
NIV
By mercy and love, truth and fidelity [to God and man--not by sacrificial offerings], iniquity is purged out of the heart, and by the reverent, worshipful fear of the Lord men depart from and avoid evil.
AMP
By mercy and truth iniquity is purged: and by the fear of the LORD men depart from evil.
KJV