Sayyiduna Abu Ayyub al-Ansari (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "The hand of Allah is with the judge when he judges, and the hand of Allah is with the one who divides (al-qasim) when he divides."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب آداب القاضي / 20440