and he permitted that the funeral prayer be performed there. Imam Aḥmad also said, “No one is to pray in a mosque that stands among the graves except for the funeral prayer, for the funeral prayer—this is its sunnah.”
Al-Ḥāfiẓ Ibn Rajab remarks in al-Fatḥ:
“He is alluding to the practice of the Companions. Ibn al-Mundhir relates that Nāfiʿ, the client of Ibn ʿUmar, said: ‘We offered the funeral prayer for ʿĀʾishah and Umm Salamah in the midst of al-Baqīʿ, with Abū Hurayrah leading us that day, and Ibn ʿUmar was in attendance.’” (1)
See al-Kawākib al-Darārī ⦗65/81/1–2⦘.
It is likely that Imam Aḥmad’s mentioning only the obligatory prayer in the first report does not imply that the other sunnah prayers are permissible there, for it is well known that the preferable place for nawāfil (supererogatory prayers) is one’s home; hence he did not list them alongside the obligatory prayer. This understanding is borne out by the general wording of his statement in the second report: