Faith was given to Abraham as a gift, just as it is given to all of the elect. Abraham attributed his faith to the righteousness of God,
not to himself, as do all who become born-again understand that it is of God's righteousness, not theirs.
Anyway, the important point is do you understand now? BTW your post above is pretty confusing too.
This help? "and he" (Abraham) counted it to him (God) for righteousness".
[Gen 15:6 KJV] 6 And he believed in the LORD; and he
counted it to him for righteousness.
ḥāšaḇ
- to think, plan, esteem, calculate, invent, make a judgment, imagine, count
[Rom 3:22 KJV] 22
Even the righteousness of God [which is] by faith of Jesus Christ unto all and upon all them that believe: for there is no difference: m
[Phl 3:9 KJV] 9 And be found in him,
not having mine own righteousness, which is of the law, but that which is through the faith of Christ, the
righteousness which is of God by faith: