Is it true that the Messenger (peace be upon him) said in a Hadith that which means: If I give a judgment in favor of one of you who knows that he is unjust and does not deserve this judgment, I have given him part of the Fire.
We know no origin for the wording of this Hadith. The authentic Hadith related to this meaning was reported on the authority of
Um Salamah (may Allah be pleased with her) that the Prophet (peace be upon him) said,
I am only a human being, and you people have disputes. Someone amongst you may present their case in a more eloquent and convincing manner than the other, and I give my judgment in their favor according to what I hear. Beware! If ever I give (by error) somebody something of their brother's right then they should not take it as I have only given them a piece of Fire.
Related by the Six Hadith Compilers (Al-Bukhari, Muslim, Abu Dawud, Al-Tirmidhy, Al-Nasa'y, and Ibn Majah).
(Part No. 23; Page No. 501) May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.