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.
عن النبي ﷺ قال: قال سليمان بن داود عليهما السلام: لأطوفن الليلة على مائة امرأة، فتأتي كل امرأة برجل يضرب بالسيف، ولم يقل: إن شاء الله، فطاف عليهن، فجاءت واحدة بنصف ولد، ولو قال سليمان: إن شاء الله لكان ما قال.
No references are available.
Nasai narrated it in Kubra (11239), and Abu Awana (5993), and Ibn Hibban graded it sahih (4337), all of them through routes from Abdullah bin Dawud, from Hisham bin Urwa, from Abu Zinad, from Araj, from Abu Hurairah, who related it. This is the wording of Nasai, and the wording of Abu Awana is similar to it. Its chain of transmission is sahih.