Proverbs 16:4

New International Version Bible (NIV)
The Lord works out everything to its proper end—
    even the wicked for a day of disaster.

Read Proverbs 16:4 in other translations