Jami` at-Tirmidhi, Book 1, Hadith 33 (Tirmidhi 33)

Ar-Rubay' bint Mu'awwidh bin Afra' narrated:

"The Prophet wiped his head two times: He began with the rear of his head, then with the front of his head and with both of his ears, outside and Inside of them."