Abraham is the father of the faithful, the patriarch who shines as a light on the subject of faith. In Genesis 15, God encourages Abraham not to be afraid because God Himself was his reward. God then goes on to tell Abraham that his descendants would be more than the stars of heaven. The Bible then records
And he hath believed in Jehovah, and He reckoneth it to him--righteousness. Genesis 15:6 YLT
The word translated in English as Righteousness is translated as justice in languages like Spanish. The question is who is counting who as just or righteousness. Is God counting Abraham as righteous or is Abraham accounting God as just or righteous?
The answer depends upon your definition of justice. If justice is the enforcement of the law requiring, then the action described cannot be towards God but rather God counting Abraham righteous through His love. But if justice of righteousness or justice is defined as mercy and kindness to the poor as often expressed in Scripture, then indeed Abraham may count God as just and this is exactly what the saints say in Revelation:
They sing the song of Moses, the servant of God, and the song of the Lamb, saying: "Great and marvelous are Your works, Lord God Almighty! Just and true are Your ways, O King of the saints! Revelation 15:3
When God’s people attribute God as righteous in His mercy then their judgment of God’s justice is then given back to them for as we judge we shall be judged.