Sahih Muslim, Book 13, Hadith 171 (Muslim 2640)

Hakam b. 'Araj reported:

I asked Ibn Abbas (Allah be pleased with them) as he was reclining using his cloak as a pillow near Zamzam about fasting on 'Ashura. The rest of the hadith is the same.