Umm Salama bint Abu Umaya reported,

She reported that the Messenger of Allah ﷺ heard a dispute at the door of his chamber, so he went out to them and said, "I am only a human being, and disputants come to me. Perhaps one of you is more eloquent than the other, so I assume he is telling the truth and rule in his favor accordingly. Whoever I rule in his favor with something that belongs by right to a Muslim, it is only a piece of the Fire, so let him take it or leave it."

Bukhari 2458

Sahih

حدثنا عبد العزيز بن عبد الله قال حدثني إبراهيم بن سعد عن صالح عن ابن شهاب قال أخبرني عروة بن الزبير أن زينب بنت أم سلمة أخبرته أن

أمها أم سلمة رضي الله عنها زوج النبي ﷺ

أخبرتها عن رسول الله ﷺ أنه سمع خصومة بباب حجرته فخرج إليهم فقال إنما أنا بشر وإنه يأتيني الخصم فلعل بعضكم أن يكون أبلغ من بعض فأحسب أنه صدق فأقضي له بذلك فمن قضيت له بحق مسلم فإنما هي قطعة من النار فليأخذها أو فليتركها

البخاري 2458صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Injustices
Chapter
Sin of one who argues in falsehood while knowing it
Numbering
Darussalam 2458
Bukhari 2458