It is narrated from Sayyiduna Anas (may Allah be pleased with him) that he was performing ablution (wudu), and he wiped the outer and inner parts of both his ears and said: "I saw the Messenger of Allah (peace and blessings be upon him) doing the same."
Ibn Sa'id (may Allah have mercy on him) said: "Al-Thaqafi (Abdul Wahhab, may Allah have mercy on him) narrates it like this (as marfu'), whereas other narrators narrate it through Sayyiduna Anas bin Malik (may Allah be pleased with him) from Sayyiduna Ibn Mas'ud (may Allah be pleased with him) as his own action."
I say: Al-Hasan bin Arafah (may Allah have mercy on him) narrated it from Hushaym (may Allah have mercy on him), from Humayd (may Allah have mercy on him), that Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates it from Sayyiduna Ibn Mas'ud (may Allah be pleased with him).
And likewise Marwan bin Mu'awiyah (may Allah have mercy on him) narrated it from Humayd (may Allah have mercy on him).