“By Allah! The Messenger of Allah (ﷺ) did not offer the funeral prayer for Suhail bin Baida’ anywhere but in the mosque.”
Sunan Ibn Majah Book 6, Hadith 86