NET Bible
"but also for our sake, to whom it will be credited, those who believe in the one who raised Jesus our Lord from the dead."
— Romans 4:24, NET Bible
“but for our sake also, unto whom it shall be reckoned, who believe on him that raised Jesus our Lord from the dead, ”
He was fully convinced that what God promised he was also able to do.
So indeed it was credited to Abraham as righteousness.
But the statement it was credited to him was not written only for Abraham’s sake,
but also for our sake, to whom it will be credited, those who believe in the one who raised Jesus our Lord from the dead.
He was given over because of our transgressions and was raised for the sake of our justification.