After the LORD had said these things to Job, he said to Eliphaz the Temanite, “I am angry with you and your two friends, because you have not spoken of me what is right, as my servant Job has. So now take seven bulls and seven rams and go to my servant Job and sacrifice a burnt offering for yourselves. My servant Job will pray for you, and I will accept his prayer and not deal with you according to your folly. You have not spoken of me what is right, as my servant Job has.” So Eliphaz the Temanite, Bildad the Shuhite and Zophar the Naamathite did what the LORD told them; and the LORD accepted Job’s prayer. After Job had prayed for his friends, the LORD restored his fortunes and gave him twice as much as he had before.
–Job 42:7-10 (TNIV)
Here we see a poignant OT example of Jesus’ command for us to pray for our enemies (Matthew 5:44). Job’s advisors had frankly abused him in their haughty arrogance. They had presumed the catastrophes that had plagued him were caused by his sin. They stood aloof from him, so to speak, and offered him advise as armchair quarterbacks and here God takes them to task for their arrogance.
And what does Job do? He prays for those who had abused him and at this moment God restores his fortunes. Go and do likewise to those who abuse you.