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