حَدَّثَنَا مُحَمَّدُ بْنُ مَخْلَدٍ ، ثنا أَبُو دَاوُدَ ، ثنا مُحَمَّدُ بْنُ كَثِيرٍ ، ثنا إِسْرَائِيلُ ، ثنا عَبْدُ الأَعْلَى ، أنَّهُ سَمِعَ مُحَمَّدَ بْنَ الْحَنَفِيَّةِ ، يَقُولُ : إِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ رَأَى رَجُلا يُصَلِّي إِلَى رَجُلٍ ، فَأَمَرَهُ أَنْ يُعِيدَ الصَّلاةَ ، قَالَ : يَا رَسُولَ اللَّهِ ، قَدْ أَتْمَمْتُ الصَّلاةَ ، فَقَالَ : " إِنَّكَ صَلَّيْتَ وَأَنْتَ تَنْظُرُ إِلَيْهِ مُسْتَقْبِلَهُ " .
Muhammad bin Hanafiyyah narrates: The Prophet Muhammad (peace be upon him) saw a man who was performing prayer facing another person, so the Prophet (peace be upon him) ordered that man to repeat his prayer. The man said, "O Messenger of Allah! I have already completed my prayer." The Prophet (peace be upon him) said, "You performed the prayer in such a state that you were facing another person in the direction of the qiblah."