Narrated Anas ibn Malik: The Prophet ﷺ passed by Hamzah who was disfigured (after being killed). He did not offer prayer over any martyr except him.
Explanation & Benefits
Shaykh Umar Farooq Saeedi
Benefits and Issues:
From this, the permissibility of performing the funeral prayer (salat al-janazah) for a martyr (shaheed) is established.
And Allah knows best.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 3137