When Abram asked God for children, God promised to give as many children as stars in sky, this promise was believed by Abram without any doubt. believing without any doubt was counted as Righteousness.
" Abram believed God with any doubt and it is counted as Righteousness. It Apples to us also and will be bless like Abram."
~ Genesis Chapter 15 and 16