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.' " (JA)
English reference (JA): Vol. 3, Book 16, Hadith 2444 (JA)
Arabic reference (JA): Book 16, Hadith 2538 (JA)