The aspects of Abraham's failure are recorded in Genesis, but righteousness was still counted to him through faith. In Chapter 21, Abraham's obedience and disobedience collide. As he faces this great distress, God speaks to him and asks for Abraham's trust. The God that was faithful to fulfill a 25-year-old promise was going to take care of Ishmael.