ようにと言った

told [someone] to

→ よう
phrase Uncommon #14,051
told [someone] to Used to report that someone told or instructed another person to do something. It follows the action the person was told to do.
JA: 母は私に早く寝るようにと言った。
EN: My mother told me to go to bed early.

バスの車掌は彼女に、料金を払えないので降りるようにと言った。

The bus conductor told her to get off because she couldn’t pay the fare.

先生は彼らに川で泳がないようにと言った。

The teacher told them not to swim in the river.

私はジムにあまり飲みすぎないようにと言った。

I told Jim not to drink too much.