Abu Hurairah reported,

The Prophet ﷺ said that Sulayman bin Dawud, peace be upon them both, said, "Tonight I shall go around to a hundred wives, and each one will bear a son who will fight with the sword in the cause of Allah." But he did not say, "If Allah wills." So he went around to them, and only one of them bore a child, and it was half a child. Had Sulayman said, "If Allah wills," it would have come about as he said.

Azami 8461

Sahih

عن أبي هريرة

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

الأعظمي 8461صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Stories of the prophets
Chapter
Reports of Sulayman عليه السلام
Section
Number of wives of Sulayman عليه السلام
Numbering
Jami al-Kamil 8461 (2nd edition)
Azami 8461