The Prophet ﷺ used to pray four rakahs of Duha and would add more as he wished.
حدثنا يزيد قال أخبرنا همام بن يحيى عن قتادة عن معاذة
أن النبي ﷺ كان يصلي الضحى أربعا ويزيد ما شاء
Its isnad is sahih. Previously mentioned in 24805.