It was reckoned unto him for righteousness (elogisthē eis dikaiosunēn). First aorist passive indicative of logizomai, old and common verb to set down accounts (literally or metaphorically). It was set down on the credit side of the ledger “for” (eis as often) righteousness. What was set down? His believing God (episteusen tōi theōi).