It was the practice of the Prophet (peace and blessings be upon him): "He (peace and blessings be upon him) did not shake hands with women at the time of the pledge of allegiance (bay'ah)."