See Romans 2:3. By reason of his faith he was as sufficiently disposed and qualified for the obtaining of the promise, as if he had had all the righteousness required by the law.
Related Commentaries of Romans 4:22
Romans 4:22
22 And therefore it was imputed to him for righteousness.