Narated By Hani ibn Yazid : When Hani went with his people in a deputation to the Apostle of Allah (PBUH), he heard them calling him by his kunyah (surname), AbulHakam.
So the Apostle of Allah (PBUH) called him and said: Allah is the judge (al-Hakam), and to Him judgment belongs. Why are you given the kunyah AbulHakam?
He replied: When my people disagree about a matter, they come to me, and I decide between them, and both parties are satisfied with my decision.
He said: How good this is! What children have you? He replied: I have Shurayh, Muslim and Abdullah. He asked; Who is the oldest of them? I replied: Shurayh. He said: Then you are AbuShurayh.