That is God’s plan and purpose – to use Satan’s temptations as a means of testing and strengthening our faith in Him and of our growing stronger in righteousness. God allows testings in our lives in order that our spiritual “muscles” may be exercised and strengthened. Whether the testing is by God’s initiative or is sent by Satan, God will always use it to produce good in us when we meet the test in His power.
John MacArthur