Urwah bin al-Zubayr (may Allah have mercy on him) said that a man disputed with Sayyiduna al-Zubayr (may Allah be pleased with him) about the water of a channel in the Harrah. He (peace and blessings be upon him) said: "O Zubayr! Water (your land), then leave (the rest) for your neighbour." The Ansari said: (It is because) he is the son of your paternal aunt! (Hearing this,) his (peace and blessings be upon him) blessed face changed colour. Then he said: "O Zubayr! Water (your land) and hold it back until it reaches the walls, then release it to your neighbour." So the Prophet (peace and blessings be upon him) gave Sayyiduna al-Zubayr (may Allah be pleased with him) his full right when the Ansari objected, although before that he (peace and blessings be upon him) had proposed a lenient arrangement.
Sayyiduna al-Zubayr (may Allah be pleased with him) said that this verse was revealed about this very matter: "But no, by your Lord, they will not (truly) believe until they make you judge in their disputes." [Surah al-Nisa: 65] He said: I heard someone other than al-Zuhri say: We considered the saying of the Prophet (peace and blessings be upon him), 'Hold back the water until it reaches the walls,' and it came up to the ankles.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20287