For Abraham, his foundation of belief; believing in God along with his faith is what made him righteous and therefore was justified. For us, having faith in Christ is accepting what He has already done on the cross and knowing that our sins have been paid for once and for all.
To be justified is to be pardoned. Christ’s death gave us justification for our sins so that we may be righteous in God’s eyes.