God made a covenant of promise with Abram. Abram believed God and it was credited righteousness on his account.