Jeremiah 29:11:

For I know the thoughts that I think toward you, saith the LORD, thoughts of peace, and not of evil, to give you an expected end.

See also:

Objection: God Gives and Takes Away