~ように{言|い}う({間接|かんせつ}の{依頼|いらい})
tell / ask (someone) to (not) do… (reported request)
N4
V dictionary / V ない-form + ように + {言|い}う / {頼|たの}む / {注意|ちゅうい}する
This pattern reports someone's request, instruction or warning. The person told is marked with に: {部長|ぶちょう}に{早|はや}く{来|く}るように{言|い}われました. Learners keep てください inside (✗{来|き}てくださいように); change it to the dictionary or ない-form. To quote directly, use 「~てください」と{言|い}いました. Besides {言|い}う it goes with {頼|たの}む, {注意|ちゅうい}する and {伝|つた}える.
Examples
班長に手袋をするように言われました。
The team leader told me to wear gloves.
山田さんに、会議の時間に遅れないように伝えてください。
Please tell Mr. Yamada not to be late for the meeting.
医者にお酒を飲まないように注意されました。
The doctor warned me not to drink alcohol.
Exercises
1.先生に宿題を明日までに出す 言われました。
2.マイさんに部屋でたばこを ように頼みました。