"The Prophet wiped his head and his ears: the outside and the inside of them." ($ahih)

Jami` at-Tirmidhi Book 1, Hadith 36