I asked Messenger of Allah ﷺ about the words of Allah, the Exalted and Glorious:" The day when the earth would be changed for another earth and Heaven would be changed for another Heaven (XiV. 48), (and inquired: ) (Messenger of Allah), where would the people be on that day? He said: They would be on the Sirat.
سَأَلْتُ رَسُولَ اللَّهِ ﷺ عَنْ قَوْلِهِ ﷻ { يَوْمَ تُبَدَّلُ الأَرْضُ غَيْرَ الأَرْضِ وَالسَّمَوَاتُ} فَأَيْنَ يَكُونُ النَّاسُ يَوْمَئِذٍ يَا رَسُولَ اللَّهِ فَقَالَ عَلَى الصِّرَاطِ