A nd therefore “it was accounted to him for righteousness.”
That is why his faith was credited to him as righteousness (right standing with God).