Narrated Ibn 'Umar
That the Prophet allowed (as above).
Vol: 002 Book: 026 Hadith: 800
A Selected Hadith
Narrated 'Amir bin Rabi'a:
The Prophet said, "If any one of you see a funeral procession and he is not going along with it, then he should stand and remain standing till he gets behind it, or it leaves him behind, or...
In the Name of Allah we enter, in the Name of Allah we leave, and upon our Lord we depend [then say As-Salaamu 'Alaykum to those present].
Info: Abu Dawud 4/325. Muslim {Hadith no. 2018) says that one should mention the Name of Allah when entering the home and when beginning to eat; and that the devil, hearing this, says: "There is no shelter for us here tonight and no food".