The Holy Prophet (peace be upon him) said, "When a person dies, the opportunity of gaining more reward ends with his death except for three things: A continuous charity; knowledge by which people derive benefit and a pious son who prays to Allah for the deceased."(Muslim).
Imam Abu Hurairah stands high on this position.
