Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Sulayman declared, 'Tonight I will go around to ninety wives, and each one will bear me a knight who will fight in the cause of Allah.' His companion said to him, 'Say, if Allah wills.' But he did not say, if Allah wills. So he went around to all of them, yet none of them conceived except one woman, who gave birth to half a man. By the One in whose hand is the soul of Muhammad, had he said, if Allah wills, they would all have fought as knights in the cause of Allah."

Bukhari 6639

Sahih

حدثنا أبو اليمان أخبرنا شعيب حدثنا أبو الزناد عن عبد الرحمن الأعرج

عن أبي هريرة قال

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

البخاري 6639صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Oaths and vows
Chapter
How the Prophet ﷺ used to swear
Numbering
Darussalam 6639
Bukhari 6639