Sometimes Hashem does not accept the prayer of the tzaddik when he prays for a certain person, because Hashem knows that this person will later draw the tzaddik into his own sins.
Sefer HaMidos, Prayer, Part I §83