(The superstructure of) al-Islam is raised on five (pillars), i. e. the oneness of Allah, the establishment of prayer, payment of Zakat, the, fast of Ramadan, Pilgrimage (to Mecca). A person said (to 'Abdullah b. Umar the narrator): Which of the two precedes the other-Pilgrimage or the fasts of Rarnadan? Upon this he (the narrator) replied: No (it is not the Pilgrimage first) but the fasts of Ramadan precede the Pilgrimage.
عَنِ النَّبِيِّ ﷺ قَالَ: «بُنِيَ الإِسْلاَمُ عَلَى خَمْسَةٍ عَلَى: (١) أَنْ يُوَحَّدَ اللَّهُ، (٢) وَإِقَامِ الصَّلاَةِ، (٣) وَإِيتَاءِ الزَّكَاةِ، (٤) وَصِيَامِ رَمَضَانَ، (٥) وَالْحَجِّ۔» فَقَالَ رَجُلٌ: الْحَجِّ وَصِيَامِ رَمَضَانَ؟ قَالَ: لاَ، صِيَامِ رَمَضَانَ، وَالْحَجِّ۔ هَكَذَا سَمِعْتُهُ مِنْ رَسُولِ اللَّهِ ﷺ