It was narrated that 'Ali bin Rabah said:
"I heard 'Utbah bin Nuddar say: 'We were with the Messenger of Allah (ﷺ) and he recited Ta-Sin. When he reached the story of Musa, he said: 'Musa (A.S) hired himself out for eight years, or ten, in return for his chastity and food in his stomach.' " (PT)
English reference (PT): Vol. 3, Book 16, Hadith 2444 (PT)
Arabic reference (PT): Book 16, Hadith 2538 (PT)