The Prophet ﷺ 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 was your son that he took.' The other replied, 'No, it was your son that he took.' So they brought their dispute to Dawud, who ruled in favor of the elder. They then went out to Sulayman bin Dawud, peace be upon them both, and informed him. He said, 'Bring me a knife so I may split him between you.' The younger one cried out, 'May Allah have mercy on you, do not do it. 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 for knife until that day. We only ever used the word mudyah."
عن النبي ﷺ قال: بينما امرأتان معهما ابنا هما جاء الذئب فذهب بابن إحداهما فقالت هذه لصاحبتها إنما ذهب بابنك أنت وقالت الأخرى إنما ذهب بابنك فتحاكمتا إلى داود فقضى به للكبرى فخرجتا على سليمان بن داود عليهما السلام فأخبرتاه فقال ائتوني بالسكين أشقه بينكما فقالت الصغرى لا يرحمك الله هو ابنها فقضى به الصغرى. قال: قال أبو هريرة والله إن سمعت بالسكين قط إلا يومئذ ما كنا نقول إلا المدية.
Bukhari narrated it in the Hadiths of the Prophets (3427), and Muslim in the Judgments (1720: 20), both through routes from Abu Zinad, from Araj, from Abu Hurairah, as mentioned. The wording given is that of Muslim, and Bukhari's wording is similar to it.It has been narrated from Ayesha that she said, "The Messenger of Allah ﷺ returned from the expedition of Tabuk or Khaybar, and there was a curtain over her storage space. A wind blew and lifted a corner of the curtain, revealing some of Ayesha's dolls. He said, 'What is this, Ayesha?' She said, 'My dolls.' Among them he saw a horse with two wings made of patches of cloth, and he said, 'What is this that I see in their midst?' She said, 'A horse.' He said, 'And what is this on it?' She said, 'Two wings.' He said, 'A horse with two wings?' She said, 'Have you not heard that Sulayman had horses with wings?'" She said, "He laughed until I could see his molars."Abu Dawud narrated it (4932), Nasai in the Kubra (8901), Ibn Hibban (5864), and Bayhaqi (10/219), all through the route of Yahya bin Ayub, who said, Umara bin Ghaziya told me that Muhammad bin Ibrahim told him, from Abu Salama bin Abdul-Rahman, from Ayesha, as mentioned.Yahya bin Ayub Ghafiqi Misri has been accused of confusion and error. His statement, "Sulayman had horses with wings," is reported by this Yahya bin Ayub alone, and I have found no one who corroborates him and no supporting evidence, so Allah knows best regarding its authenticity.