‘Had to’ for past obligation
Incorrect : I must go there yesterday.
Correct : I had to go there yesterday.
Note: ‘Had to’ is the past form of ‘must’ when it is used to express obligation. But ‘must’ can indicate the past tense in the indirect speech.
For example:
He said that he must do it.