Four rak'ahs, but sometimes more as he pleased.

Sahih Muslim Book 6 Hadith 93

Sahih Muslim #719 a

The Book of Prayer - Travellers 6:93

Mu'adha asked 'A'isha (Allah be pleased with her) how many rak'ahs Allah's Messenger (ﷺ) prayed at the forenoon prayer. She replied:

Four rak'ahs, but sometimes more as he pleased.

Chapter: It is recommended to pray Duha, the least of which is two rak`ah, the best of which is eight, and the average of which is four or six, and encouragement to do so regularly

Grade: Sahih