Sayyidah Aisha (may Allah be pleased with her) said: The Messenger of Allah (peace and blessings be upon him) used to embrace me while I was in the state of menstruation, and he would touch my head, but there would be a cloth barrier between us.
Hadith Referenceسنن دارمي / من كتاب الطهارة / 1088