Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:4078Aḥmad b. Muḥammad b. al-Ḥārith > ʿAlī b. ʿUmar > ʿAbdullāh b. Muḥammad b. ʿAbd al-ʿAzīz > Dāwud b. Rushayd > Abū Ḥafṣ al-Abbār > ʿAmr b. Khālid > Ḥabīb b. Abū Thābit > ʿĀṣim b. Ḍamrah > ʿAlī

[Machine] He (prophet Muhammad) performed prayer with the people while he was in a state of major ritual impurity (junub), then he commanded them and they performed prayer again. This incident is narrated by Amr bin Khalid, Abu Makhlad, Al-Wasiti, who is considered unreliable as he is accused of lying by the scholars.  

البيهقي:٤٠٧٨وَالَّذِي أَنْبَأَهُ أَحْمَدُ بْنُ مُحَمَّدِ بْنِ الْحَارِثِ أنبأ عَلِيُّ بْنُ عُمَرَ ثنا عَبْدُ اللهِ بْنُ مُحَمَّدِ بْنِ عَبْدِ الْعَزِيزِ ثنا دَاوُدُ بْنُ رُشَيْدٍ ثنا أَبُو حَفْصٍ الْأَبَّارُ عَنْ عَمْرِو بْنِ خَالِدٍ عَنْ حَبِيبِ بْنِ أَبِي ثَابِتٍ عَنْ عَاصِمِ بْنِ ضَمْرَةَ عَنْ عَلِيٍّ ؓ

أَنَّهُ صَلَّى بِالْقَوْمِ وَهُوَ جُنُبٌ فَأَعَادَ ثُمَّ أَمَرَهُمْ فَأَعَادُوا فَهَذَا إِنَّمَا يَرْوِيهِ عَمْرُو بْنُ خَالِدٍ أَبُو مَخْلَدٍ الْوَاسِطِيُّ وَهُوَ مَتْرُوكٌ رَمَاهُ الْحُفَّاظُ بِالْكَذِبِ