Hadithcore
Sahih al-Bukhari, 3707
sahih

Narrated Ubaida:

Ali said (to the people of 'Iraq), "Judge as you used to judge, for I hate differences (and I do my best ) till the people unite as one group, or I die as my companions have died."

حَدَّثَنَا عَلِيُّ بْنُ الْجَعْدِ، أَخْبَرَنَا شُعْبَةُ، عَنْ أَيُّوبَ، عَنِ ابْنِ سِيرِينَ، عَنْ عَبِيدَةَ، عَنْ عَلِيٍّ ـ رضى الله عنه ـ قَالَ اقْضُوا كَمَا كُنْتُمْ تَقْضُونَ، فَإِنِّي أَكْرَهُ الاِخْتِلاَفَ حَتَّى يَكُونَ لِلنَّاسِ جَمَاعَةٌ، أَوْ أَمُوتَ كَمَا مَاتَ أَصْحَابِي‏.‏ فَكَانَ ابْنُ سِيرِينَ يَرَى أَنَّ عَامَّةَ مَا يُرْوَى عَلَى عَلِيٍّ الْكَذِبُ‏.‏

References2 variants
In-Book Reference
Book 62, Hadith 57
USC-MSA web (English) reference
Vol. 5, Book 57, Hadith 56 (deprecated numbering scheme)