Reported requests: 〜ように言う, 〜ように頼む and 〜なと言われた
Report what someone asked for with plain verb plus you ni, then choose iu or tanomu. Use the passive to explain what you were told to do.

In short
Report the action someone was asked to do using the plain verb followed by ように言う or ように頼む. To describe an instruction you received, use ように言われた. If you are quoting a direct prohibition, 「〜な」と言われた preserves the quoted tone.
Keep the requested action in front of ように
At the end of a volunteer shift the coordinator asks three people to put their keys back in the drawer. Later you tell a colleague what she asked the team to do. Your task is to pass on the action. You do not need to remember the exact greeting, politeness ending or conversational lead-in. Put the action in the dictionary form and make it the content of ように言いました.
担当の人は私たちに、鍵を引き出しに戻すように言いました。
丁寧語 politeThe coordinator told us to put the keys back in the drawer.
The first に gives the people receiving the instruction. The next is part of 引き出しに戻す, putting the keys back in the drawer.
The main verb supplies the time of the request. If you will ask someone tomorrow, put the future time before the main clause and end with 頼みます. If you asked yesterday, use 頼みました. The embedded action usually stays in the dictionary form for something requested and the ない form for something to avoid. This stays true when the person speaking politely uses ます at the end.
Choose the reporting verb for the situation
隣の人に、荷物が届いたら連絡してくれるように頼みました。
丁寧語 politeI asked my neighbour to let me know if the parcel arrived.
頼む presents the request as a favor. The neighbor would provide the update.
With 言う, you can report the fact that an instruction was given. With 頼む, you tell the listener that someone requested help or cooperation. Either might describe the same wording, depending on the relationship and what you want to emphasize. The coordinator might think she gave an instruction, while a volunteer describes it as a request. Both forms leave open whether anyone did as asked.
When the request is useful information for the listener too, put the concrete detail into the embedded clause. For example, if your colleague needs to know the deadline, include it next to the action: 金曜までに資料を送るように頼まれました. までに places the deadline on sending. The request itself might already be a few days old.
Report that someone was asked to refrain
係の人は見学者に、展示品に触らないように言いました。
丁寧語 politeThe attendant told the visitors not to touch the exhibits.
The ない form is part of what the visitors were told.
Move the negation and you change the event you report. 触らないように言った describes a warning against touching. 触るようには言わなかった says the person did not give an instruction to touch. In the first version there was a message. In the second you are discussing one possible message that was never given. The position of ない or なかった is the clue.
Describe an instruction you received
Change 言う to 言われる when you are speaking from the recipient’s point of view. 先生に提出先を確認するように言われました describes what the teacher told you to do. 先生に now names the person who gave the instruction. The subject of the main sentence can be left out in an account about your own experience.
The same choice works with 頼まれました. If someone asked you to bring chairs for an event, you can report the favor without naming the speaker again when your listener already knows who organised it. In a longer account, add the speaker’s name or title so that the reader can see who made each request. The polite ending belongs to your present conversation with the listener.
Quote when the wording matters
兄に「今は入るな」と言われました。
丁寧語 politeMy older brother told me, “Don’t come in now.”
The quoted 入るな is a blunt prohibition. The outer sentence remains polite.
A close quote can be useful if a friend asks how the other person phrased something. A paraphrase with 入らないように言われました carries the instruction, while the quote above lets the listener hear its bluntness. A real speaker might also say 「今は入らないで」と言われました to preserve a softer original. Quote only wording you are prepared to attribute to the speaker.
Time and place can also need updating. If someone said “Leave it here tomorrow” on Monday and you pass that message on from another building on Tuesday, specify the place and date in a paraphrase. If you quote the words, say when and where they were spoken so the listener can interpret “here” and “tomorrow.” Japanese gives you the choice depending on which information matters.
To practise, take a message from a class group or a club role-play. First underline the requested action, then write its plain form. Name the source or the person being asked, depending on whose perspective you take. Finally, read your sentence with the original direct request beside it. Check that the same person is supposed to act and that any deadline still refers to the right day.