عَنِ ابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُمَا أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ لَمَّا أَحْصَرَ أَهْلَ الطَّائِفِ وَلَمْ يُقَدِّرْ مِنْهُمْ عَلَى شَيْءٍ قَالَ إِنَّا قَافِلُونَ غَدًا إِنْ شَاءَ اللَّهُ فَكَأَنَّ الْمُسْلِمِينَ كَرِهُوا ذَلِكَ فَقَالَ اغْدُوا فَغَدَوْا عَلَى الْقِتَالِ فَأَصَابَهُمْ جِرَاحٌ فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ إِنَّا قَافِلُونَ غَدًا إِنْ شَاءَ اللَّهُ فَسُرَّ الْمُسْلِمُونَ فَضَحِكَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ
It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with him) that when the Noble Prophet (peace and blessings be upon him) besieged the people of Ta’if and did not achieve victory, he (peace and blessings be upon him) said: “We shall, God willing, depart tomorrow.” It seemed as if the Muslims did not like this decision, so he (peace and blessings be upon him) said: “Alright, then fight in the morning.” When morning came, the Muslims fought, as a result of which many Muslims were wounded. The Messenger of Allah (peace and blessings be upon him) then said: “We shall, God willing, depart tomorrow.” Upon hearing this, the Muslims became happy, and the Messenger of Allah (peace and blessings be upon him) smiled when he saw their reaction.