Chinese mythology, folktales, and literature
In Journey to the West, when Guanyin Bodhisattva and her disciple Moksha (Hui’an Pilgrim) were sent by Tathāgata to find a scripture-seeking monk in Chang’an, their choice to lodge temporarily in a temple of the local spirit was no random decision.
In Journey to the West, Zhenyuanzi (Great Immortal Zhenyuan) — the Ancestor of Earthly Immortals — transforms from an “enemy” to a “sworn brother” of Sun Wukong.