Hadithcore
Riyad as-Salihin, 1142

Umm Hani, daughter of Abu Talib (May Allah be pleased with her) reported:

I went to the Messenger of Allah (ﷺ) on the day of the conquest of Makkah. He was taking a bath at that time. When he finished the bath, he performed eight Rak'ah (of optional) prayers. This was during the Duha (forenoon). <b>[Al-Bukhari and Muslim]</b>.

وعن أم هانئ فاختة بنت أبي طالب رضي الله عنها قالت‏:‏ ذهبت إلى رسول الله صلى الله عليه وسلم عام الفتح فوجدته يغتسل فلما فرغ من غسله صلى ثمان ركعات، وذلك ضحى‏"‏ ‏(‏‏(‏متفق عليه وهذا مختصر لفظ إحدى روايات مسلم‏)‏‏)‏

References1 variant
In-Book Reference
Book 8, Hadith 152
Sharh · explanationclick to expand
<b>Guidance from the Hadiths:</b><br> 1) The least number of Rak‘ahs of the Duha prayer is two, and there is no limit to the maximum. The Hadith that mentions eight Rak‘ahs does not indicate restriction to that number.<br> 2) We are encouraged to regularly perform the Duha prayer, whether we are travelers or non-travelers. The Prophet (may Allah’s peace and blessings be upon him) offered this prayer on the day of the Conquest of Makkah, i.e. during travel.