T hat is why his faith was credited to him as righteousness (right standing with God).
Therefore it was also credited to him as righteousness.