The verse below further confirms that heaven was only made into seven heavens when the Earth already existed according to the Qur'an.
27 Ti langit ipanayagnanto ti biddutna,+Ket ti daga umalsanto a maibusor kenkuana.