Fetching details from the dictionary...

visit (to a religious site, e.g. shrine, temple, grave)
正月に初詣りに行くのが恒例だ。
It's customary to make a New Year's shrine visit.
墓詣りの帰りに花を買って帰った。
On the way back from visiting the grave, I bought flowers.
お宮詣りには赤ちゃんも一緒に連れて行く。
For a shrine visit, we take the baby along too.