it was imputed
Romans 4:3
For what saith the scripture? Abraham believed God, and it was counted unto him for righteousness.
Romans 4:6
Even as David also describeth the blessedness of the man, unto whom God imputeth righteousness without works,