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:15143al-Sharyf Abū al-Fatḥ > ʿAbd al-Raḥman b. Abū Shurayḥ > Abū al-Qāsim al-Baghawī > ʿAlī b. al-Jaʿd > Isrāʾīl > ʿAbd al-Aʿlá > Muḥammad Ibn al-Ḥanīfah

[Machine] About Ali (may Allah be pleased with him), regarding a man who divorces his wife once or twice, then remarries her, and then her husband divorces her, Ali said: "If she returns to him after she has married (another man), then the divorce is to be implemented. And if he marries her during her waiting period, then she remains with him based on what is stated in the first narration from Ali (may Allah be pleased with him), which is more authentic, while the narrations from Abdul-A'la about Ibn Al-Hanifah are weak according to the scholars of Hadith. And Allah knows best."  

البيهقي:١٥١٤٣أَخْبَرَنَا الشَّريفُ أَبُو الْفَتْحِ أنا عَبْدُ الرَّحْمَنِ بْنُ أَبِي شُرَيْحٍ نا أَبُو الْقَاسِمِ الْبَغَوِيُّ نا عَلِيُّ بْنُ الْجَعْدِ أنا إِسْرَائِيلُ عَنْ عَبْدِ الْأَعْلَى عَنْ مُحَمَّدٍ ابْنِ الْحَنِيفَةِ

عَنْ عَلِيٍّ ؓ فِي الرَّجُلِ يُطَلِّقُ امْرَأَتَهُ تَطْلِيقَةً أَوْ تَطْلِيقَتَيْنِ ثُمَّ تُزَوَّجُ فَيُطَلِّقُهَا زَوْجُهَا قَالَ إِنْ رَجَعَتْ إِلَيْهِ بَعْدَمَا تَزَوَّجَتِ ائْتُنِفَ الطَّلَاقُ وَإِنْ تَزَوَّجَهَا فِي عِدَّتِهَا كَانَتْ عِنْدَهُ عَلَى مَا بَقِيَ الرِّوَايَةُ الْأُولَى عَنْ عَلِيٍّ ؓ أَصَحُّ وَرِوَايَاتُ عَبْدِ الْأَعْلَى عَنِ ابْنِ الْحَنِيفَةِ ضَعِيفَةٌ عِنْدَ أَهْلِ الْحَدِيثِ وَاللهُ أَعْلَمُ  


See similar narrations below:

Collected by Suyūṭī
suyuti:4-2488b
Request/Fix translation

  

السيوطي:٤-٢٤٨٨b

"عَنْ عَلِىٍّ: فِى الرَّجُلِ يُطَلِّقُ امْرَأَتَهُ تَطْلِيقَةً أَوْ تَطْلِيقَتَيْنِ، ثُمَّ تُزَوَّج فَيُطَلِّقُها زَوْجُهَا، قَالَ: إِنْ رَجَعَتْ إِلَيْه بَعْدَ مَا تَزَوَّجَتْ ائتُنِفَ الطَّلاق، فَإِنْ تَزَوَّجَهَا فِى عِدَّتهَا كانَتْ عنْدَهُ عَلَى مَا بَقِىَ".  

[ق] البيهقى في السنن وضعَّفه