Saeed bin Jubayr reported,

A Jewish man from the people of Hira asked me, "Which of the two terms did Musa complete?"I replied, "I do not know, but I will go to the scholar of the Arabs and ask him."So I traveled and asked Ibn Abbas, who said, "He completed the longer and the better of the two. When the Messenger of Allah ﷺ said something, he did it."

Azami 12962

Sahih

عن سعيد بن جبير قال

سألني يهودي من أهل الحيرة: أي الأجلين قضى موسى؟ قلت: لا أدري حتى أقدم على حبر العرب فأسأله، فقدمت، فسألت ابن عباس فقال: قضى أكثرهما وأطيبهما إن رسول الله ﷺ إذا قال فعل.

الأعظمي 12962صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Qasas
Section
His saying, "He said, 'I intend to wed you to one of these two daughters of mine on condition that you serve me for eight years. If you complete ten, it will be of your own accord, and I do not wish to make it difficult for you. You will find me, if Allah wills, among the righteous.' He said, 'That is settled between me and you. Whichever of the two terms I fulfill, there will be no injustice to me, and Allah is witness over what we say.'"
Numbering
Jami al-Kamil 12962 (2nd edition)
Azami 12962