Fetching details from the dictionary...

visit (to a shrine, grave, etc.); worship
新年に家族で神社へお参りに行きます。
I go to the shrine to pray in the new year.
毎月欠かさずお参りに来ているそうです。
I hear they come to worship every month.
正月に家族で近所の神社にお参りした。
On New Year's, my family visited the neighborhood shrine.