Interesting. I never knew there was a canonical source for this. In Pali sources the expanded account of the Seven Suns Sutta, with its end-of-the-æon deva commotion (kappakolāhala) is only met with in the commentaries.
Commotions are of five kinds: commotion about the eon, commotion about a wheel-turning monarch, commotion about a buddha, commotion about blessings, and commotion about munihood.
Here, when the desire-sphere devas, with loose head bands, scattered hair, and tearful faces, wiping their tears with their hands, wearing dyed clothes and with disshelved garments, wandering along the path of humans, announce, “After 100,000 years, the end of the eon will occur. This world will perish, the great ocean will dry up, and this great earth along with Sineru, king of mountains, will burn up and perish, and world destruction will occur up to the brahma world. Develop loving-kindness, dear sirs, develop compassion, altruistic joy, and equanimity. Attend on your mother and father, respect the elders in the family. Be vigilant! Do not be heedless!” — this is called the commotion about the eon.
(Bhikkhu Bodhi, Suttanipāta)
More expansively in the Visuddhimagga:
When a long period has passed in this way, the water gives out here and there. Then in due course the fishes and turtles die and are reborn in the Brahmā world, and so are the beings in hell. Some say that the denizens of hell perish there with the appearance of the seventh sun.
Now, there is no rebirth in the Brahmā-world without jhāna; and some of them, being obsessed with the scarcity of food, are unable to attain jhāna, so how are they reborn there? By means of jhāna obtained in the [sense-sphere] divine world.
For then the sense-sphere deities called world-marshal (loka-byūha) deities come to know that at the end of a hundred thousand years there will be the emergence of an aeon, and they travel up and down the haunts of men, their heads bared, their hair dishevelled, with piteous faces, mopping their tears with their hands, clothed in dyed cloth, and wearing their dress in great disorder.
They make this announcement: “Good sirs, good sirs, at the end of a hundred thousand years from now there will be the emergence of an aeon. This world will be destroyed. Even the ocean will dry up. This great earth, and the Sineru King of Mountains, will be consumed and destroyed. The destruction of the earth will extend as far as the Brahmā-world. Develop loving-kindness, good sirs, develop compassion, gladness, equanimity, good sirs. Care for your mothers, care for your fathers, honour the elders of your clans.”
When human beings and earth deities hear their words, they mostly are filled with a sense of urgency. They become kind to each other and make merit with loving-kindness, etc., and so they are reborn in the divine world. There they eat divine food, and they do the preliminary work on the air kasina and acquire jhāna. Others, however, are reborn in a sense-sphere divine world through kamma to be experienced in a future life. For there is no being traversing the round of rebirths who is destitute of kamma to be experienced in a future life.
They too acquire jhāna there in the same way. All are eventually reborn in the Brahmā-world by acquiring jhāna in a sense-sphere divine world in this way.