“Offer the funeral prayer for your dead by night or by day.”
Sunan Ibn Majah Book 6, Hadith 90