Everyone will be brought to Hell, then the Righteous will be saved
Ibn Jarir reported from `Abdullah that he said concerning Allah's statement,
وَإِن مِّنكُمْ إِلاَّ وَارِدُهَا
(There is not one of you but will pass over it.) "The bridge over Hell is like the sharp edge of a sword. The first group to cross it will pass like a flash of lightning. The second group will pass like the wind. The third group will pass like the fastest horse. The fourth group will pass like the fastest cow. Then, the rest will pass while the angels will be saying, `O Allah save them, save them.' " This narration has supporting narrations similar to it from the Prophet in the Two Sahihs and other collections as well. These narrations have been related by Anas, Abu Sa`id, Abu Hurayrah, Jabir and other Companions, may Allah be pleased with them all. Ahmad also recorded that Umm Mubashshar, the wife of Zayd bin Harithah, said, "The Messenger of Allah ﷺ was in the house of Hafsah when he said,
"And there is none among you who is not to arrive at it." - 19:71.
This means that everybody - be he a believer or an infidel - will go across Hell. However, this does not mean that they would go to stay in it; they would only go across it. But even if the word means "entry", then the pious believers on entry into Hell will feel no discomfort because its fires will cool down and will do no harm to them. Sayyidna Abu Sumayya ؓ has related that The Holy Prophet ﷺ once said that:
"Everybody whether he is a pious man or a sinner will initially enter Hell, but for the pious believers the fire will cool down just as the fire of Namrud cooled down when Sayyidna Ibrahim (علیہ السلام) was cast into it. Thereafter, the believers will be taken to Paradise."
This view is confirmed by the next sentence ثُمَّ نُنَجِّي الَّذِينَ اتَّقَوا which mens then We will save those who feared Allah - 19:72. A similar view has also been expressed by Sayyidna Ibn ` Abbas ؓ ، thus even if the word وُرُود occurring in the Qur'an is taken to mean دُخُول (entry), then the word دُخُول will be interpreted as synonymous with the word عُبُور (going across). Thus there is no contradiction in the meaning of the word.
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 72–73
Not to accept the Truth is a crime, but to instigate a movement for the rejection of Truth is an even bigger crime. Those who become leaders of any movement to oppose the Truth deserve the worst punishment that God can mete out to them. In the life hereafter, they will be given double the punishment given to ordinary people. From Quranic statements and certain traditions, it is learned that on the Day of Judgement Almighty God will let all people pass over hell. This will not be a passage through the interior of hell but merely across it from above. It will be just like a man passing across an open bridge over a deep river. He will see the dangerous waves of the river, but will not drown in them. The people’s passing over hell on the Day of Judgement will be similar to this. The pious and righteous will go ahead and enter Paradise, while the evil ones will not be able to move on any further. Hell will recognize them and draw them in. The purpose of putting men through this experience will be to make those who are sent to Paradise fully realize the magnitude of this great blessing of God, who has saved them from such a terrible place and sent them instead to an infinitely superior place.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.