Sunan Ibn Majah, Book 1, Hadith 173 (Ibn Majah 439)

It was narrated from Ibn 'Abbas that:

The Messenger of Allah wiped his ears, putting his forefingers in his ears and wiping the back of them with his thumbs, so he wiped them inside and out.