Is there any evidence in Hindu books that Shiva and Vishnu also go through birth and death? Is there any supreme in Hinduism who exist forever and create Shiva and Vishnu?
Chapter 5th of Kurma Purana:
At the close of that period, all living beings get dissolved in Prakrti, their source. Hence, this is called the reabsorption into
Prakrti (Prakrta Pratisaicara) by wise men.
It is said that in due course of time, Brahma, Narayana and Isa (Rudra), all the three, become merged in Prakrti and their
remanifestation also is to take place.
Thus, Brahma, the elements (or all living beings)and even Vasudeva and Sankara are created by Kala (time). He alone devours them again.
This Lord Kala is beginningless, endless, free from old age or decay and immortal. He is the Supreme Ruler because of his
omnipresence, independence and his state of being the soul of all.
There have been many Brahmas, Rudras, Narayanas and others, but there is one Lord controller of all viz. Kala. He is omniscient. So
states the Śruti (Vedas).
Here are the Sanskrit shlokas and Hindi translation:
Note: Kala is often used as one of the various names or forms of Yama. But here Kala is another name of Brahman (the Ultimate Reality) and can be related with AdiNarayana, Mahākāla, SadaShiva and AdiShakti as per different sects belief.