It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) performed ablution: he took a handful of water and washed his face, then took a handful and washed his right hand, then took a handful and washed his left hand, then took a handful and wiped his head and his ears as well, the inner part of the ears with his two index fingers, and turning his two thumbs to the outer part of the ears he wiped both their inner and outer parts, then took a handful and washed his right foot, then took a handful and washed his left foot.
Imam Ibn Majah (may Allah have mercy on him) narrated it from Abu Bakr (that is, Ibn Abi Shaybah).
Our purpose in (citing) this hadith is only the wiping of the ears; the rest Imam al-Bukhari (may Allah have mercy on him) narrated with a similar meaning.