Although Abram had been demonstrating his faith through his actions, it was his belief in the Lord, not his actions, that made Abram right with God. We, too, can have a right relationship with God by trusting him.
Our outward actions-church attendance, prayer, good deeds-will not by themselves make us right with God. A right relationship is based on faith the heartfelt inner confidence that God is who he says he is and does what he says he will do. Right actions will follow naturally as by-products.
And Abram believed the LORD, and the LORD counted him as righteous because of his faith. – Genesis 15:6