The report of Aisha: The Prophet, peace and blessings be upon him, only intended that the passing of a dog, a woman, and a donkey cuts off the prayer of the one who is praying, not the staying of the dog, nor its lying down, nor the lying down of the donkey, nor the lying down of the woman cuts off the prayer of the one who is praying. And Aisha only reported that she used to lie down in front of the Prophet, peace and blessings be upon him, while he was praying, not that she passed in front of him.
Abdullah bin Samit رحمه الله narrates from Sayyiduna Abu Dharr رضی اللہ عنہ that the Prophet صلی اللہ علیہ وسلم said: "The prayer will be invalidated if a donkey, a woman, or a black dog passes in front of the one praying." I asked, "Is there a difference between a black dog and a yellow or red dog?" He replied, "I asked the Messenger of Allah صلی اللہ علیہ وسلم just as you have asked me, and he said: 'The black dog is a devil.'"