It was narrated from Nimran bin Jariyah, from his father, that : some people referred a dispute to the Prophet ﷺ about a hut, so that he could judge between them. He sent Hudhaifah to judge between them, and he ruled in favor of those who had the rope (with which the hut was blinded together). When he went back to the Prophet ﷺ he told him (what he had done) and he said: "You did the right thing, and you did well".
The lesson here is that justice must be upheld at all times and that everyone deserves respect regardless of their opinion or decision as long as it is based on fairness and truthfulness. We must also remember to be humble enough to accept praise when it is due so as not to become arrogant or prideful in our actions.