Abrahams faith, was not just head knowledge. He acted on his faith, and God reconciled that, to Abraham being right with God.

Then he believed in the Lord ; and He reckoned it to him as righteousness.
GENESIS 15:6 NASB
https://bible.com/bible/100/gen.15.6.NASB