Tafsir Ibn Kathir -> Surah Al-Hijr -> The Gates of Hell are Seven

Then Allah tells us that Hell has seven gates:

﴿لِكُلِّ بَابٍ مِّنْهُمْ جُزْءٌ مَّقْسُومٌ﴾

(for each of those gates is a (special) class (of sinners) assigned.) means, for each gate a portion of the followers of Iblis have been decreed, and they will have no choice in the matter. May Allah save us from that. Each one will enter a gate according to his deeds, and will settle in a level of Hell according to his deeds. Ibn Abi Hatim recorded that Samurah bin Jundub reported from the Prophet about,

﴿لِكُلِّ بَابٍ مِّنْهُمْ جُزْءٌ مَّقْسُومٌ﴾

(for each of those gates is a class assigned.) He said,

«إِنَّ مِنْ أَهْلِ النَّارِ مَنْ تَأْخُذُهُ النَّارُ إِلَى كَعْبَيْهِ، وَإِنَّ مِنْهُمْ مَنْ تَأْخُذُهُ النَّارُ إِلَى حُجْزَتِهِ، وَمِنْهُمْ مَنْ تَأْخُذُهُ النَّارُ إِلَى تَرَاقِيه»

(Among the people of Hell are those whom the Fire will swallow up to the ankles, and those whom it will swallow up to the waist, and those whom it will swallow up to the collarbone.) The degree of which will depend upon their deeds. This is like the Ayah;

﴿لِكُلِّ بَابٍ مِّنْهُمْ جُزْءٌ مَّقْسُومٌ﴾

(for each of those gates is a class assigned.)

﴿إِنَّ الْمُتَّقِينَ فِى جَنَّـتٍ وَعُيُونٍ - ادْخُلُوهَا بِسَلامٍ ءَامِنِينَ - وَنَزَعْنَا مَا فِى صُدُورِهِم مِّنْ غِلٍّ إِخْوَانًا عَلَى سُرُرٍ مُّتَقَـبِلِينَ - لاَ يَمَسُّهُمْ فِيهَا نَصَبٌ وَمَا هُمْ مِّنْهَا بِمُخْرَجِينَ - نَبِّىءْ عِبَادِى أَنِّى أَنَا الْغَفُورُ الرَّحِيمُ - وَأَنَّ عَذَابِى هُوَ الْعَذَابُ الاٌّلِيمُ ﴾

(45. Truly, those who have Taqwa, will dwell in Gardens and water springs.) (46. (It will be said to them): "Enter it in peace and security.'') (47. And We shall remove any deep feeling of bitterness from their breasts. (So they will be like) brothers facing each other on thrones.) (48. No sense of fatigue shall touch them, nor shall they be asked to leave it. (49. Declare to My servants that I am truly the Forgiving, the Most Merciful.) (50. And that My torment is indeed the most painful torment.)