'〜ように言う': Indirect Quotation of Directives ('Told Someone to...')
[Verb Dict Form / Nai-form] + ように言う/頼む/伝える (Conveying indirect instructions)
'〜ように言う' is used to report or convey an indirect order, request, instruction, or warning passed from one party to another ('told them to...', 'asked them not to...'). It avoids harsh direct imperative quotes.
⚠ Note: Negative instructions: Use the nai-form: '遅刻しないように言ってください' (Please tell them not to be late).
先生に、明日は遅刻しないように言われました。
The teacher told us not to be late tomorrow.
田中さんに、私の部屋に来るように伝えてください。
Please convey to Mr. Tanaka to come to my room.