The Buddha's teaching on metta, boundless loving-kindness, given to monks frightened by forest spirits and chanted across Theravada countries ever since.
The Karaniya Metta Sutta (Sn 1.8): the Buddha's discourse on boundless loving-kindness toward all beings, chanted for protection.