Scholars have different views on this matter. Historically, most scholars have rejected this view (some of it is soft rejection while some of it is hard rejection coupled with accusations of kufr for one who believes in that).
Majority of scholars today still reject this belief.
They have cited some hadiths such as:
إن الله تبارك وتعالى كان ولا شئ غيره
And:
لا إله إلا أنت، كنت إذ لم تكن سماء مبنية، ولا أرض مدحية، ولا شمس مضيئة، ولا ليل مظلم، ولا نهار مضئ، ولا بحر لجي، ولا جبل رأس، ولا نجم سار… كنت قبل كل شئ، وكونت كل شئ، وقدرت على كل شئ، وابتدعت كل شئ
And you can find hadiths here that indicate the universe is not eternal:
https://hawzah.net/ar/Book/View/45297/30436/حدوث-العالم-في-روايات-أهل-البيت-%22عليهم-السلام%22