Fetching details from the dictionary...
visiting a shrine or temple to give thanks for the fulfilment of a prayer
願いが叶ったので願解きに行った。
My wish was granted, so I went to give thanks.
神社で願解きの参拝をした。
I visited the shrine to give thanks for my answered prayer.
願解きとして奉納品を納めた。
I offered a votive gift as thanks for my answered prayer.