It is narrated from Abu Umamah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) offered the funeral prayer at the grave of a poor woman who had passed away during the night.
Hadith Referenceمسند الإمام الشافعي / كتاب الجنائز / 594
Hadith Takhrijصحیح اخرجه النسائي، الجنائز، باب الصلاة على الجنازة بالليل (1971) ۔ اخرجه البيهقي في المعرفة السنن والآثار (2160) ۔ وعبدالرزاق (6394)۔