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."
أخبرنا عمران بن بكار بن راشد قال حدثنا علي بن عياش قال حدثنا شعيب قال حدثني أبو الزناد مما حدثه عبد الرحمن الأعرج مما ذكر أنه سمع
به عن رسول الله ﷺ قال وقال بينما امرأتان معهما ابناهما جاء الذئب فذهب بابن إحداهما فقالت هذه لصاحبتها إنما ذهب بابنك وقالت الأخرى إنما ذهب بابنك فتحاكمتا إلى داود عليه السلام فقضى به للكبرى فخرجتا إلى سليمان بن داود فأخبرتاه فقال ائتوني بالسكين أشقه بينهما فقالت الصغرى لا تفعل يرحمك الله هو ابنها فقضى به للصغرى قال أبو هريرة والله ما سمعت بالسكين قط إلا يومئذ ما كنا نقول إلا المدية
Bukhari included it in the Book of the Prophets, in the chapter on Allah's saying, "And We gave Dawud Sulayman..." etc, hadith no. 3427, from the hadith of Shuayb bin Abu Hamza with this same chain, and it is also in Al-Kubra, hadith no. 5960.