The Prophet ﷺ used to pray four units for the Duha prayer, and he would add more as Allah willed.
حدثنا عبد الرزاق حدثنا معمر عن قتادة عن معاذة العدوية
كان النبي ﷺ يصلي صلاة الضحى أربع ركعات ويزيد ما شاء الله
Its isnad is sahih, mentioned previously at 25108.