Some people with little knowledge have imagined that these ahadith are contrary to the hadith of Sayyidah Aisha (may Allah be pleased with her) that "The Noble Prophet (peace and blessings be upon him) used to pray while I was lying between him (peace be upon him) and the Qiblah."
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 reports that Sayyiduna Abu Dharr (may Allah be pleased with him) said: A donkey, a woman, and a black dog break the prayer. I asked, "O Abu Dharr, what is the distinction of a black dog over a white, yellow, or red dog (that the prayer is broken by it and not by the others passing)?" He replied, "My nephew, I asked the Messenger of Allah (peace and blessings be upon him) just as you have asked me, and he (peace and blessings be upon him) said: 'The black dog is a devil.'"