Abu Hurairah reported,

It is reported through this chain from the Messenger of Allah ﷺ that he said, "Sulayman bin Dawud said, 'Tonight I will go around to ninety wives, each of whom will bear a horseman 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 have all fought in the cause of Allah as horsemen."

Nasai 3862

Sahih

أخبرنا عمران بن بكار قال حدثنا علي بن عياش قال أنبأنا شعيب قال حدثني أبو الزناد مما حدثه عبد الرحمن الأعرج مما ذكر أنه سمع

أبا هريرة يحدث

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

النسائي 3862صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Oaths and vows
Chapter
If one swears an oath and a man says to him "If Allah wills," does he have an exception
Numbering
Darussalam 3862
Nasai 3862