Nafi' (may Allah be pleased with him) narrates that Ibn Umar (may Allah be pleased with them both) performed ablution in the market, washed his face and hands, then wiped over his head. Then he was called for a funeral prayer. When he entered the mosque to perform the funeral prayer, he wiped over his socks, and then performed the funeral prayer.
Hadith Referenceمسند الإمام الشافعي / كتاب الطهارة / 81