Abraham proved himself to God on several occasions. In fact, God had such faith in Abraham that he gave an old man and his wife children. God knew that if Abraham had children that he would bring them up in the “nurture and admonition of the Lord”.
God had confidence that Abraham would instill a love and respect of God in his offspring. Abraham and Sarah were way past the age of having children but the impossible has never been a problem for God.