Psalm 138:8:

The LORD will perfect that which concerneth me: thy mercy, O LORD, endureth for ever: forsake not the works of thine own hands.

See also:

Objection: God Sometimes Leads Faithful Saints into “Wilderness Experiences”