Ecc 3:17 says that: I said to myself, "God will judge both the righteous man and the wicked man," for a time for every matter and for every deed is there
Romans 2:16: In the day when God shall judge the secrets of men by Jesus Christ according to my gospel.
There are two separate judgments. Believers are judged at the Judgment Seat of Christ (Romans 14:10-12). This judgment does not determine salvation, but rather is when believers must give an account of their lives to Christ. Believers are rewarded based on how faithfully they served Christ (1 Corinthians 9:4-27; 2 Timothy 2:5). The things we will likely be judged on is how well we obeyed the Great Commission (Matthew 28:18-20), how victorious we were over sin (Romans 6:1-4), how well we controlled our tongue (James 3:1-9), etc. We will have to give an account for our actions, Romans 14:12 declares, “So then, each of us will give an account of himself to God.” Unbelievers are judged at the Great White Throne Judgment (Revelation 20:11-15). This judgment does not determine salvation either. Everyone at the Great White Throne is an unbeliever and is therefore already doomed to the lake of fire.Revelation 20:11-15