Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) narrates this statement of the Prophet (peace and blessings be upon him): "A dog and a menstruating woman (this can also mean an adult woman) passing in front of a person praying invalidate his prayer."