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:20657Abū ʿAbdullāh al-Ḥāfiẓ And ʾAbū Bakr Aḥmad b. al-Ḥasan > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-ʿAbbās b. Muḥammad al-Dūrī > Shabābah b. Sawwār > ʿAbd al-ʿAzīz b. Abū Salamah > Jaʿfar b. Muḥammad from his father > ʿAlī > Rasūl

[Machine] That the Messenger of Allah ﷺ passed a judgment by a witness and an oath, and Ali ibn Abi Talib (may Allah be pleased with him) passed a judgment by it in Iraq.  

البيهقي:٢٠٦٥٧أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ وَأَبُو بَكْرٍ أَحْمَدُ بْنُ الْحَسَنِ قَالَا أنبأ أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا الْعَبَّاسُ بْنُ مُحَمَّدٍ الدُّورِيُّ ثنا شَبَابَةُ بْنُ سَوَّارٍ ثنا عَبْدُ الْعَزِيزِ بْنُ أَبِي سَلَمَةَ عَنْ جَعْفَرِ بْنِ مُحَمَّدٍ عَنْ أَبِيهِ عَنْ عَلِيٍّ ؓ

أَنَّ رَسُولَ اللهِ ﷺ قَضَى بِشَاهِدٍ وَيَمِينٍ وَقَضَى بِهِ عَلِيُّ بْنُ أَبِي طَالِبٍ ؓ بِالْعِرَاقِ