Sage Vashistha was priest to King Dashratha and preceptor of Lord Rama. He imparted spiritual knowledge to the sons of Kings Dashratha in a series of discourses. These appear in the “Yoga Vasishtha Maharamayana” composed by Valmiki as an appendage to the Ramayana.