God does not send evil circumstances your way to teach you a lesson. NO, when tragedy or temptation strikes, we are not to thank God for them. He is not the author of evil.
Instead we should be thanking Him for His answer to these challenges. He's the One who provides our way of escape from them. He’s the One who provides the healing, the provision, and blessing in the midst of the storm we face.