the Vedas
more will be added

The Rig Veda grants to a cyclical universe. That creation is not final, like everything else, the universe has a birth, a life and eventually it dies. This is what Ragnarok says in the Norse Philosophy.
Rig Vedic Suktas

Acceptance of Death RV 10:13

I yoke with my homage your ancient inspiration,
may the praise-songs come, as on the prince’s pathway.
Listen, all ye sons of immortality,
you who inherit the celestial regions.
For the sake of Gods he opted for death,
and for men’s sake he chose not immortality.
They made a sacrifice of this most wise sage,
And Yama gave up his own dear body.

The Original Vedic Hymn

yuje vem brahma purvyam namobhir vishloka etu pathyashva surah|
shrenivantu vishve amritasya putra ye dhameni divyani tasthah||
yame iva yatamene yad aitam pra vem bharan manushe devayantah |
sidatam svam ulokam videne svasasthe bhavatam indave nah ||
pavcha padani rupo anv aroham catushpadim anv emi vratena |
aksharenia prati mima etam ritasya nabhev adhi sam punami ||
devebhyah kam avrinita mrityurm prajayai kam amritam navrinita |
brehaspatim yajnam akrinvata rishim priyam yamas tanv…m prarirecit ||
sapta ksharanti shishave marrutvate pitre putraso apy avivatann ritam |
ubhe id asyobhayasya rejata ubheyatete ubhayasya pushyatah||

1