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.
hakim:7003Ḥamzah b. al-ʿAbbās al-ʿAqabī > al-ʿAbbās b. Muḥammad al-Dūrī > Shabābah b. Sawwār > And Rqāʾ b. ʿUmar > Muslim > Mujāhid > Ibn ʿAbbās

[Machine] The Prophet ﷺ sent Ali to Yemen and said, "Teach them the laws and settle their disputes." Ali said, "I have no knowledge of judging." So, he placed his hand on his chest and said, "O Allah, guide him in judging."  

الحاكم:٧٠٠٣أَخْبَرَنَا حَمْزَةُ بْنُ الْعَبَّاسِ الْعَقَبِيُّ بِبَغْدَادَ ثَنَا الْعَبَّاسُ بْنُ مُحَمَّدٍ الدُّورِيُّ ثَنَا شَبَابَةُ بْنُ سَوَّارٍ ثَنَا وَرْقَاءُ بْنُ عُمَرَ عَنْ مُسْلِمٍ عَنْ مُجَاهِدٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

بَعَثَ النَّبِيُّ ﷺ إِلَى الْيَمَنِ عَلِيًّا فَقَالَ «عَلِّمْهُمُ الشَّرَائِعَ وَاقْضِ بَيْنَهُمْ» قَالَ لَا عِلْمَ لِي بِالْقَضَاءِ فَدَفَعَ فِي صَدْرِهِ فَقَالَ «اللَّهُمَّ اهْدِهِ لِلْقضَاءِ»  

هَذَا حَدِيثٌ صَحِيحٌ عَلَى شَرْطِ الشَّيْخَيْنِ وَلَمْ يُخَرِّجَاهُ على شرط البخاري ومسلم

See similar narrations below:

Collected by Suyūṭī
suyuti:15568a
Request/Fix translation

  

السيوطي:١٥٥٦٨a

"عَلِّمْهُم الشَّرَائعَ وَاقْضِ بَينَهُمْ، اللَّهُمَ اهْدِه للقَضَاءِ, قَالهُ لِعَلِيٍّ، لَما بَعَثَهُ إِلَى الْيَمَنِ".  

[ك] الحاكم في المستدرك عن ابن عباس