Those who deemed the recitation of Qur’an by the grave to be reprehensible include scholars who disliked it even when the reciter had no special intention of reciting for the sake of the grave—just as performing prayer there is disliked—for Imām Aḥmad prohibited recitation during the Funeral Prayer at the graveside. It is obvious that recitation within the prayer is not meant as a graveside recitation; nevertheless, the distinction between what occurs incidentally and by way of accompaniment, and what is performed specifically for the grave, has already been clarified.
Regarding the charitable endowments (awqāf) that people have set up for Qur’anic recitation at their graves, they do possess certain benefits: they help preserve the Qur’an, provide sustenance for its memorizers, and spur them on to memorize, study, and continually review it. Even if one were to assume that the reciter earns no reward for his recitation, such endowments still serve to safeguard the religion—just as it is safeguarded by the recitation of a sinner or by a sinner’s participation in jihad. The Prophet (peace and blessings be upon him) said: “Allah supports this religion through a sinful man.”
A detailed treatment of endowments and their legal conditions is discussed elsewhere and is not the subject here. As for remembering Allah at the graveside, that in itself is not disliked; what is reprehensible is to single out the site for remembrance, for that constitutes a kind of turning it into a festive occasion (ʿīd). The same censure applies to visiting it with the express intention of fasting there.