Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:5242Maḥmūd > ʿAbd al-Razzāq > Maʿmar > Ibn Ṭāwus from his father > Abū Hurayrah

(The Prophet) Solomon son of (the Prophet) David said, "Tonight I will go round (i.e. have sexual relations with) one hundred women (my wives) everyone of whom will deliver a male child who will fight in Allah's Cause." On that an Angel said to him, "Say: 'If Allah will.' " But Solomon did not say it and forgot to say it. Then he had sexual relations with them but none of them delivered any child except one who delivered a half person. The Prophet ﷺ said, "If Solomon had said: 'If Allah will,' Allah would have fulfilled his (above) desire and that saying would have made him more hopeful."  

البخاري:٥٢٤٢حَدَّثَنِي مَحْمُودٌ حَدَّثَنَا عَبْدُ الرَّزَّاقِ أَخْبَرَنَا مَعْمَرٌ عَنِ ابْنِ طَاوُسٍ عَنْ أَبِيهِ عَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ سُلَيْمَانُ بْنُ دَاوُدَ عَلَيْهِمَا السَّلاَمُ لأَطُوفَنَّ اللَّيْلَةَ بِمِائَةِ امْرَأَةٍ تَلِدُ كُلُّ امْرَأَةٍ غُلاَمًا يُقَاتِلُ فِي سَبِيلِ اللَّهِ فَقَالَ

لَهُ الْمَلَكُ قُلْ إِنْ شَاءَ اللَّهُ فَلَمْ يَقُلْ وَنَسِيَ فَأَطَافَ بِهِنَّ وَلَمْ تَلِدْ مِنْهُنَّ إِلاَّ امْرَأَةٌ نِصْفَ إِنْسَانٍ قَالَ النَّبِيُّ ﷺ لَوْ قَالَ إِنْ شَاءَ اللَّهُ لَمْ يَحْنَثْ وَكَانَ أَرْجَى لِحَاجَتِهِ  


See similar narrations below:

Collected by Nasāʾī, Aḥmad
nasai:3856al-ʿAbbās b. ʿAbd al-ʿAẓīm > ʿAbd al-Razzāq > Maʿmar > Ibn Ṭāwus from his father > Abū Hurayrah Rafaʿah

"Sulaiman said: 'I will certainly go around to ninety women tonight, each of whom will bear a child who will fight in the cause of Allah.' It was said to him: 'Say: If Allah wills' but he did not say it. He went around to them but none of them bore a child except for one woman who bore half a person." The Messenger of Allah said: "If he had said: 'If Allah wills,' he would not have broken his vow, and this would have been a means to help him to get what he wanted."  

النسائي:٣٨٥٦أَخْبَرَنَا الْعَبَّاسُ بْنُ عَبْدِ الْعَظِيمِ قَالَ حَدَّثَنَا عَبْدُ الرَّزَّاقِ قَالَ أَنْبَأَنَا مَعْمَرٌ عَنِ ابْنِ طَاوُسٍ عَنْ أَبِيهِ عَنْ أَبِي هُرَيْرَةَ رَفَعَهُ قَالَ

سُلَيْمَانُ لأَطُوفَنَّ اللَّيْلَةَ عَلَى تِسْعِينَ امْرَأَةً تَلِدُ كُلُّ امْرَأَةٍ مِنْهُنَّ غُلاَمًا يُقَاتِلُ فِي سَبِيلِ اللَّهِ فَقِيلَ لَهُ قُلْ إِنْ شَاءَ اللَّهُ فَلَمْ يَقُلْ فَطَافَ بِهِنَّ فَلَمْ تَلِدْ مِنْهُنَّ إِلاَّ امْرَأَةٌ وَاحِدَةٌ نِصْفَ إِنْسَانٍ فَقَالَ رَسُولُ اللَّهِ ﷺ لَوْ قَالَ إِنْ شَاءَ اللَّهُ لَمْ يَحْنَثْ وَكَانَ دَرَكًا لِحَاجَتِهِ  

ahmad:7715ʿAbd al-Razzāq > Maʿmar > Ibn Ṭāwus from his father > Abū Hurayrah

"Sulaiman said: 'I will certainly go around to ninety women tonight, each of whom will bear a child who will fight in the cause of Allah.' It was said to him: 'Say: If Allah wills' but he did not say it. He went around to them but none of them bore a child except for one woman who bore half a person." The Messenger of Allah said: "If he had said: 'If Allah wills,' he would not have broken his vow, and this would have been a means to help him to get what he wanted." (Using translation from Nasāʾī 3856)   

أحمد:٧٧١٥حَدَّثَنَا عَبْدُ الرَّزَّاقِ حَدَّثَنَا مَعْمَرٌ عَنِ ابْنِ طَاوُسٍ عَنْ أَبِيهِ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللهِ ﷺ قَالَ سُلَيْمَانُ بْنُ دَاوُدَ لَأَطُوفَنَّ اللَّيْلَةَ بِمِائَةِ امْرَأَةٍ تَلِدُ كُلُّ امْرَأَةٍ مِنْهُنَّ غُلَامًا يُقَاتِلُ فِي سَبِيلِ اللهِ قَالَ وَنَسِيَ أَنْ يَقُولَ إِنْ شَاءَ اللهُ فَأَطَافَ بِهِنَّ قَالَ فَلَمْ تَلِدْ مِنْهُنَّ امْرَأَةٌ إِلَّا وَاحِدَةٌ نِصْفَ إِنْسَانٍ فَقَالَ رَسُولُ اللهِ ﷺ لَوْ قَالَ إِنْ شَاءَ اللهُ لَمْ يَحْنَثْ وَكَانَ دَرَكًا لِحَاجَتِهِ