It is just as it was written: "Abraham believed God, and it was reputed to him unto justice.
Other versions
King James Version
Even as Abraham believed God, and it was accounted to him for righteousness. English Standard Version
just as Abraham "believed God, and it was counted to him as righteousness"?New International Version
Consider Abraham: "He believed God, and it was credited to him as righteousness."