Trishashti Shalaka Purusha Caritra
Part 3: Kṣemaṅkara’s omniscience
Then Kṣemaṅkara, enlightened by the Lokāntika-gods, wishing to become a mendicant, established Vajrāyudha in his kingdom. After he had given gifts for a year, the Lord adopted mendicancy and practiced severe penance, observing manifold resolutions. The Lord's omniscience arose from the destruction of the destructive karmas and the Indras celebrated the omniscience-festival. Occupying a samavasaraṇa, the Omniscient delivered a sermon to Vajrin, Vajrāyudha, and others seated in the proper places. After hearing the sermon many people became mendicants. Vajradhara, Vajrāyudha, and the others went to their respective abodes.