Sahih Muslim #368 b
The Book of Menstruation 3:140
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.