Performing the funeral prayer over the deceased is obligatory
The Prophet ﷺ himself refrained from leading the funeral prayer of a person who had a debt, but he commanded the people:
صلوا على صاحبكم
“Pray the funeral prayer over your companion.”
(Ibn Hazm, may Allah have mercy on him) Performing the funeral prayer over the Muslims who die is obligatory.
(Siddiq Hasan Khan, may Allah have mercy on him) It is a collective obligation (fard kifayah).
(Albani, may Allah have mercy on him) Performing the funeral prayer over a deceased Muslim is a collective obligation (fard kifayah).