Job 9:2 says:
In truth I know that this is so; But how can a man be in the right before God?
Is this a rhetorical question, or he is sincerely wondering how to be justified before God? Depending on who you ask, Job may have been pre-Abraham or post-Abraham, and likely occurred in the area of what is now Jordan and southern Israel. What were his religious beliefs as they pertained to salvation?
In Job 1:8, Job is clearly portrayed as a God-fearer:
The Lord said to Satan, “Have you considered My servant Job? For there is no one like him on the earth, a blameless and upright man, fearing God and turning away from evil.”
Additionally, the heading to chapter 9 says
Job Says There Is No Arbitrator between God and Man, yet I cannot find anything in the passage that clearly supports this. As I noted above, we clearly see God referencing how he felt about Job, but how did Job feel about how he could speak to God?
Summarizing, How did Job believe he could communicate with God, and how did he believe one could be right with God? (please note I am treating Job as a historical figure, not as a parable).