a verb meaning to petition, thank, or converse with a deity
The little girl knelt by her bed to pray.
Prey is a noun meaning a person or animal that is hunted.
Mice are a common prey of owls.
Prey is also a verb meaning to seize or devour or to exert a harmful influence
Owls sometimes prey upon squirrels and rabbits.
Here is a helpful trick to remember prey vs. pray.
Both of these words are verbs, but only prey is also a noun. Hence, if you are using the word as a noun, you should spell it prey.
As verbs, the situation is less simple. Pray is used in the context of worship, whereas prey is used in the context of food.
You can remember to use pray when you are worshiping someone since pray is spelled with the letter A. This letter is also used to spell the name of the Greek goddess of wisdom, Athena. By remembering the name of this particular deity, you can remember the appropriate usage cases for the verb pray.