 Yi Jing, a Chinese monk and scholar, stayed in Sumatra from 687 to 689 on his way to India.He wrote on the Srivijaya's splendour, "Buddhism was flourishing throughout the islands of Southeast Asia.Many of the kings and the chieftains in the islands in the southern seas admire and believe in Buddhism, and their hearts are set on accumulating good action."