Sahih Bukhari | Volume 8 | Hadith Number 109

Narrated by 'Abdullah bin 'Umar
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 Allah's Apostle 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 Allah's Apostle said, "Tomorrow we will return (to Medina), if Allah wills." His companions kept quiet this time. Allah's Apostle then smiled.