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.
bukhari:7278Musaddad > Sufyān > al-Zuhrī > ʿUbaydullāh > Abū Hurayrah And Zayd b. Khālid

We were with the Prophet ﷺ when he said (to two men), "I shall judge between you according to Allah's Book (Laws)."  

البخاري:٧٢٧٨حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا سُفْيَانُ حَدَّثَنَا الزُّهْرِيُّ عَنْ عُبَيْدِ اللَّهِ

عَنْ أَبِي هُرَيْرَةَ وَزَيْدِ بْنِ خَالِدٍ قَالاَ كُنَّا عِنْدَ النَّبِيِّ ﷺ فَقَالَ لأَقْضِيَنَّ بَيْنَكُمَا بِكِتَابِ اللَّهِ