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