It is surprising that Satan went to God's presence [Job 1:6 ,8, 12]!
He did not go to worship God. He went to complain about Job's motives for being true to God! He does the same about you and me too. That is why he is called "the accuser".
God had a good testimony about Job. He said "There is no one on earth like him, he is blameless and upright; A man who fears God and shuns evil." [Job 1:6]. Yet God gave Satan permission to test his stand with God [Job 1:12]. Will God be able to give the same word of commendation about us? Sometimes He may permit Satan to test us too.
If our motives in seeking and worshiping God are pure, He will bring us out triumphantly, like Job. It is God who gives us the grace to be righteous and holy. He is able to keep us faithful till the end.