The Book of Menstruation (Kitab Al-Haid)
Muslim :: Book 3 : Hadith 717
This hadith is narrated by Shaqiq with the same chain of transmitters but with the alteration of these words: He (the Holy Prophet) struck hands upon the earth, and then shook them and then wiped his face and palm.