Abu Hurairah reported,

The Prophet of Allah Sulayman عليه السلام had sixty wives. He said, "Tonight I will go around to all my wives, and each one will conceive and bear a horseman who will fight in the cause of Allah." So he went around to his wives, but none of them conceived except one woman, who gave birth to half a boy.The Prophet of Allah ﷺ said, "Had Sulayman said, 'If Allah wills,' every one of them would have conceived and borne a horseman who would fight in the cause of Allah."

Bukhari 7469

Sahih

حدثنا معلى بن أسد حدثنا وهيب عن أيوب عن محمد

عن أبي هريرة

أن نبي الله سليمان عليه السلام كان له ستون امرأة فقال لأطوفن الليلة على نسائي فلتحملن كل امرأة ولتلدن فارسا يقاتل في سبيل الله فطاف على نسائه فما ولدت منهن إلا امرأة ولدت شق غلام قال نبي الله ﷺ لو كان سليمان استثنى لحملت كل امرأة منهن فولدت فارسا يقاتل في سبيل الله

البخاري 7469صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
Will and volition
Numbering
Darussalam 7469
Bukhari 7469