1. If Job was guilty of sin, then his friends were correct. He is deserving of what he got and there would be no point to the story whatsoever.
Outwardly he kept the law, but because Job was producing his own works it lack the main ingredient that makes law-keeping real - agape. Hence, "agape is the fulfillment of the law."
Go to 1 Cor 13:3 If I give all I possess to the poor [an outwardly righteous act] ..., but have not love [agape], it [the act] is meaningless.
He is deserving of what he got and there would be no point to the story whatsoever.
The point is that a self-righteous spirit will eventually cause God to retreat. Look at Matthew 23:27
“Woe to you, teachers of the law and Pharisees, you hypocrites! You are like whitewashed tombs, which look beautiful on the outside but on the inside are full of dead men’s bones and everything unclean."
On the outside the teachers of the law and Pharisees looked wonderful, but on the inside they were void of the very ingredient that would make their works genuine - agape! What was the result?
34 "Therefore I am sending you prophets and wise men and teachers."
God sent warnings to the Jews just as He sent Elihu to Job. What was the result of their self-righteousness? Did God punish them? No, they brought disaster on themselves:
37 “O Jerusalem, Jerusalem, you who kill the prophets and stone those sent to you, how often I have longed to gather your children together, as a hen gathers her chicks under her wings,
but you were not willing. 38 Look, your house is left to you desolate."
What happened in 70AD? The Jews, except for the Christians, were butchered. Who did it? Satan, through Roman. Why? God had retreated.
What happened to Job because of his self-righteous attitude? Right, God backed off and Satan came in and wrecked his life. So it wasn't God (as Job's three friends stated) it was Satan.
2. Job was the one being falsely accused of sin, so it is natural that he would justify himself.
If I was being accused of
a sin I knew I didn't commit, yes I would deny it, but I would never claim that I am righteous - i.e., without sin. Why?
1 John 1:8 "If we claim to be without sin [righteous],
we deceive ourselves and the truth is not in us."
Job was deceived. He was deceived that his righteousness was of God, but his law-keeping lacked one key ingredient - agape! Agape is the supreme gift of the Holy Spirit and it comes to those resting in God's redemption and who put no confidence in human performance.
3. Again I ask, where is Job's acknowledgment of the sin of self-righteousness?
42:1 Then Job answered the Lord, and said, 3 ‘Who is this that hides counsel without knowledge?’ ”Therefore I have declared that ["I am righteous"] which I did not understand, Things too wonderful for me, which I did not know.”...6 Therefore I retract [that I am righteous],
And I repent in dust and ashes.”
Where is he asked to go to Elihu and offer a sacrifice and to have Elihu pray for him? Where?
God accepted Job's repentance so your question is meaningless.
Rob