〜ますように・〜ように (wishes and reminders)
may …, I hope; (reminder) be sure to
Verb ます-form + ように (wish) · Plain form + ように。 (reminder)
Sign up free to review this point on a spaced schedule.
At the end of a sentence, ように can express a wish or prayer: 試験に合格できますように, "please let me pass the exam". You'll see it written on shrine prayer boards (絵馬) and in cards: 早く元気になりますように, "hoping you get well soon".
The wish uses the polite ます-form, even though no one is being addressed directly.
The same ending also gives a firm but indirect instruction, as in notices, teachers' reminders and meetings: 明日は遅れないように, "don't be late tomorrow". Here the plain form comes before ように.
Both uses leave off the verb that would normally follow (祈る, "pray", or 言う, "tell"), which is why they feel soft and formal.
Examples
試験に合格できますように。
Please let me pass the exam.
早く元気になりますように。
Hoping you get well soon.
明日晴れますように。
Please let it be sunny tomorrow.
明日は遅れないように。
Make sure you're not late tomorrow.
明日は八時までに集まるように。
Be here by eight tomorrow.