It is narrated from Sayyiduna Imran bin Husayn (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Your brother al-Najashi has died, so stand and offer the funeral prayer for him." So we formed rows just as rows are formed for a deceased person, and prayed just as the prayer is offered over a deceased person.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 15539