Language:
كتاب التوحيد
97  
Oneness, Uniqueness of Allah (Tawheed)
(31)
Chapter: (Allah’s) Wish and Will
(31)
باب فِي الْمَشِيئَةِ وَالإِرَادَةِ
Sahih al-Bukhari 7469

Narrated Abu Huraira:

Allah's Prophet Solomon who had sixty wives, once said, "Tonight I will have sexual relation (sleep) with all my wives so that each of them will become pregnant and bring forth (a boy who will grow into) a cavalier and will fight in Allah's Cause." So he slept with his wives and none of them (conceived and) delivered (a child) except one who brought a half (body) boy (deformed). Allah's Prophet said, "If Solomon had said; 'If Allah Will,' then each of those women would have delivered a (would-be) cavalier to fight in Allah's Cause." (See Hadith No. 74 A, Vol. 4).

حَدَّثَنَا مُعَلَّى بْنُ أَسَدٍ، حَدَّثَنَا وُهَيْبٌ، عَنْ أَيُّوبَ، عَنْ مُحَمَّدٍ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ نَبِيَّ اللَّهِ سُلَيْمَانَ ـ عَلَيْهِ السَّلاَمُ ـ كَانَ لَهُ سِتُّونَ امْرَأَةً فَقَالَ لأَطُوفَنَّ اللَّيْلَةَ عَلَى نِسَائِي، فَلْتَحْمِلْنَ كُلُّ امْرَأَةٍ وَلْتَلِدْنَ فَارِسًا يُقَاتِلُ فِي سَبِيلِ اللَّهِ، فَطَافَ عَلَى نِسَائِهِ، فَمَا وَلَدَتْ مِنْهُنَّ إِلاَّ امْرَأَةٌ وَلَدَتْ شِقَّ غُلاَمٍ‏.‏ قَالَ نَبِيُّ اللَّهِ صلى الله عليه وسلم ‏ "‏ لَوْ كَانَ سُلَيْمَانُ اسْتَثْنَى لَحَمَلَتْ كُلُّ امْرَأَةٍ مِنْهُنَّ، فَوَلَدَتْ فَارِسًا يُقَاتِلُ فِي سَبِيلِ اللَّهِ ‏"‏‏.‏
Reference : Sahih al-Bukhari 7469
In-book reference : Book 97, Hadith 95
USC-MSA web (English) reference : Vol. 9, Book 93, Hadith 561
  (deprecated numbering scheme)