Abu Hurairah reported,

It was narrated from the Messenger of Allah ﷺ that he said, "While two women were with their two sons, a wolf came and carried off the son of one of them. One said to her companion, 'It took your son,' and the other said, 'No, it took your son.' So they took their dispute to Dawud عليه السلام, and he ruled in favor of the elder woman. Then they went out to Sulayman bin Dawud and told him about it. He said, 'Bring me a knife so I may cut the child between them.' The younger woman said, 'Do not do so, may Allah have mercy on you. He is her son.' So he ruled that the child belonged to the younger woman."Abu Hurairah said, "By Allah, I had never heard the word sikkin (knife) used until that day. We used to call it only mudyah."

Nasai 5404

Sahih

أخبرنا عمران بن بكار بن راشد قال حدثنا علي بن عياش قال حدثنا شعيب قال حدثني أبو الزناد مما حدثه عبد الرحمن الأعرج مما ذكر أنه سمع

أبا هريرة يحدث

به عن رسول الله ﷺ قال وقال بينما امرأتان معهما ابناهما جاء الذئب فذهب بابن إحداهما فقالت هذه لصاحبتها إنما ذهب بابنك وقالت الأخرى إنما ذهب بابنك فتحاكمتا إلى داود عليه السلام فقضى به للكبرى فخرجتا إلى سليمان بن داود فأخبرتاه فقال ائتوني بالسكين أشقه بينهما فقالت الصغرى لا تفعل يرحمك الله هو ابنها فقضى به للصغرى قال أبو هريرة والله ما سمعت بالسكين قط إلا يومئذ ما كنا نقول إلا المدية

النسائي 5404صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Etiquette of judges
Chapter
Ruling of a judge based on his own knowledge
Numbering
Darussalam 5404
Nasai 5404