Fetching details from the dictionary...
written prayer for a shrine or Buddhist temple
寺院に願文を奉納して祈願した。
We offered a written prayer to the temple and prayed.
古い願文が寺の倉庫から発見された。
An old written prayer was discovered in the temple storehouse.
願文には病気平癒の祈りが記されていた。
The written prayer contained a plea for recovery from illness.