Touching the Almighty, we cannot find him out: he is excellent in power, and in judgment, and in plenty of justice: he will not afflict.Job 37:23
God will not afflict. He does not bring us problems to teach us a lesson. He allows us to go through circumstances, but when He does, He is asking us to trust Him, to surrender it to Him. All He wants is us to let Him help us through. It is the devil who brings the trouble, but it is God who will bring us through it triumphly. Remember, II Corinthians 2:14 says God always causes us to triumph.