Avraham, at Sarah's behest, throws Haggar and Yishmael out of his house and sends them packing. We read about how they go through the desert and Yishmael falls ill and is dieing. Haggar distances herself from him so as not to se him in his death throes. An angel appears to Haggar and says that Hashem has heard her prayers and the child will recover. In 21:17 the angel says that Hashem has heard the prayers of the boy where he is.
Rashi explains "where he is" to be a reference to the idea that Hashem listened to his prayers and judged him in his current status, and ignored the fact that he would later be evil and cause trouble and do bad. His current actions are ok and therefore his prayers have been accepted.
But Rashi already told us in 21:9 that the reason Sarah wanted him thrown out of the house was because she saw him involved in idol worship, murder and inappropriate relationships. These are the three worst sins a person can be involved in! How can Rashi say that he was currently ok and being judged for now rather than later?
I do not have a good answer to explain Rashi, btu was thinking that this might be the reason the Ramban (and others) suggest a different, more basic, explanation. They say that it simply means he will be healed right where he is.
Anybody out there who can explain Rashi?