My father said I had to work hard.

Literal

Father [topic-は] me [subject-が] hard work must [quotative-と] said.

懸命に働かなければならないと言った — embeds the obligation pattern in quoted speech.