In Job 1, satan was restricted from attacking Job's person. satan killed Job's children and utterly wasted all Job had. This occurred in one day.
In Job 2, satan was allowed physical access to Job, but was stayed from killing him.
The physical attack on Job went on for many days ... possibly months ... and did not end until chapter 38 when God spoke to Job.
Throughout his suffering, Job claimed he would trust God for God is his salvation (Job 13:15-16) ... Job looked to God in heaven and cried tears to Him (Job 16:19-20) ... Job looked to his Redeemer in hope, knowing he would see Him (Job 19:25-27).
.
Yes, Job said he was trusting God for his salvation. The problem was Job thought God would save him because Job was so righteous, and not because of God's righteousness. God's righteousness is Jesus Christ. God asked Job if Job was condemning God so that Job might be righteous.
Job 40:8 "Wilt thou also disannul my judgment? wilt thou condemn me, that thou mayest be righteous?"
Job 40:14 "Then will I also confess unto thee that thine own right hand can save thee."