“The Prophet (ﷺ) used to pray at night, and I was laying between him and the prayer direction, as a (body for a) funeral horizontally.’”

Sunan Ibn Majah Book 5, Hadith 154