Bring it (the bier) into the mosque so that I offer prayer for him. But, this act of hers was disapproved. She said: By Allah, the Messenger of Allah (ﷺ) offered prayer in the mosque for the two sons of Baida', viz, for Suhail and his brother.
Sahih Muslim Book 11, Hadith 130