In 1701, Yoshio OISHI (the chief retainer of Ako Domain and the head of Ako roshi (ex-Ako samurai, who left their domain to take revenge for their lord who had been forced to commit ritual suicide by disembowelment)) visited one of his maternal relatives, who was a senior priest of this temple, after leaving Ako, to have a Terauke shomon (certificate of a Buddhist temple) issued, and settled in Yamashina (a suburb of Kyoto).
1701年（元禄14年）、大石良雄は赤穂を退去後、外戚にあたる当時の来迎院長老を頼り、寺請証文を受け山科に居を構えた。