[verb (dictionary form)] + ように祈る [verb ない-form] + ように祈る
ように祈る means "pray that" or "hope with all your heart that": the outcome is out of your hands. It follows the dictionary form for what you want to happen and the ない-form for what you want not to happen, and いのる祈る itself conjugates freely.
The verb before ように stays in the non-past even when the praying is in the past.
These go beyond ように祈る after a verb.
In letters and speeches, a noun with を replaces the ように clause, and the humble おいのりしますお祈りします closes the message.