Hadith.442 - In another report, "Imam Ali ibn Abi Talib (as), did not wash Ammar ibn Yasir and Hashim ibn Utbah (known as al-Mirqal). He buried them in their clothing with their blood and did not offer funeral prayers for them”.
[AL SADUQ]
This is how it was narrated, it is understood that no member of the community should be left without a funeral prayer upon their death.