Proverbs 16:4

WEB(i) 4 Yahweh has made everything for its own end—
          yes, even the wicked for the day of evil.