It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he said: "I used to think that the soles of the feet were more deserving of being wiped than their tops, until I saw the Messenger of Allah (peace and blessings be upon him) wiping over their tops." The wording of both chains is the same, except that in one narration the words are "the Prophet (peace and blessings be upon him)".
Ishaq bin Rahwayh (may Allah have mercy on him) narrated it from Isa bin Yunus (may Allah have mercy on him), from al-A'mash (may Allah have mercy on him), from Abu Ishaq (may Allah have mercy on him).
And Imam Abu Dawud (may Allah have mercy on him) also narrated it from Abu Kurayb (may Allah have mercy on him), from Hafs bin Ghiyath (may Allah have mercy on him), from al-A'mash (may Allah have mercy on him).
Related hadith on this topic