Solomon
Proverbs 16:4ESV·traditional attribution

The LORD has made everything for its purpose, even the wicked for the day of trouble.

Matthew Henry Presbyterian @wholebiblehenry

Note, 1. That God is the first cause. He is the former of all things and all persons, the fountain of being; he gave every creature the being it has and appointed it its place. Even the wicked are his creatures, though they are rebels; he gave them those powers with which they fight against him, which aggravates their wickedness, that they will not let...

John Gill Reformed Baptist @doctorgill

The Lord hath made all things for himself,.... This is true of the Lord with respect to the creation of all things by him. All things are made by him, the heaven, earth, and sea; and all that are in them, angels, men, beasts, birds, fishes, and all creatures: and these are made for himself, and not another; not for the pure or good men...

Jamieson-Fausset-Brown Reformed @jfbcommentary

for himself--"for its answer," or "purpose," that is, according to God's plan; the wicked are for the day of evil (Psa 49:5; Jer 17:18); sinning and suffering answer to each other, are indissolubly united.