This means he accepted and trusted what Yahweh said was true.
"Yahweh counted Abram's belief as righteousness" or "Yahweh considered Abram righteous because Abram believed him"