When Allah Apostle was in Ta'if (trying to conquer it), he said to his companions, "Tomorrow we will return (to Medina), if Allah wills." Some of the companions of Messenger of Allah ﷺ said, "We will not leave till we conquer it." The Prophet ﷺ said, "Therefore, be ready to fight tomorrow." On the following day, they (Muslims) fought fiercely (with the people of Ta'if) and suffered many wounds. Then Messenger of Allah ﷺ said, "Tomorrow we will return (to Medina), if Allah wills." His companions kept quiet this time. Messenger of Allah ﷺ then smiled.
لَمَّا كَانَ رَسُولُ اللَّهِ ﷺ بِالطَّائِفِ قَالَ إِنَّا قَافِلُونَ غَدًا إِنْ شَاءَ اللَّهُ فَقَالَ نَاسٌ مِنْ أَصْحَابِ رَسُولِ اللَّهِ ﷺ لاَ نَبْرَحُ أَوْ نَفْتَحَهَا فَقَالَ النَّبِيُّ ﷺ فَاغْدُوا عَلَى الْقِتَالِ قَالَ فَغَدَوْا فَقَاتَلُوهُمْ قِتَالاً شَدِيدًا وَكَثُرَ فِيهِمُ الْجِرَاحَاتُ فَقَالَ رَسُولُ اللَّهِ ﷺ إِنَّا قَافِلُونَ غَدًا إِنْ شَاءَ اللَّهُ قَالَ فَسَكَتُوا فَضَحِكَ رَسُولُ اللَّهِ ﷺ قَالَ الْحُمَيْدِيُّ حَدَّثَنَا سُفْيَانُ بِالْخَبَرِ كُلَّهُ