Fetching details from the dictionary...
making a prayer (to a god or Buddha)
合格を祈って神社で願掛けをした。
I made a prayer at a shrine, wishing to pass the exam.
願掛けのために百日参りを続けている。
I have been visiting the shrine for a hundred days as a prayer.
母は息子の回復を願掛けしていた。
The mother was praying for her son's recovery.