Prayer is the pillar of the religion

The head of the matter is Islam, its pillar is prayer.

Narrated by Mu'adh ibn Jabal

Shall I not tell you the head of the matter, its pillar and its peak? The head of the matter is Islam, its pillar is the prayer, and its peak is striving in the way of Allah.

Jami' at-Tirmidhi 2616

What this hadith teaches

A tent without its central pole collapses. In the same way, a person's religion stands on the prayer; without it everything else falls down.

Reference and grade

Grade
Sahih (at-Tirmidhi: hasan sahih)
Narrator
Mu'adh ibn Jabal

The hadith in Arabic نص الحديث

تَعْبُدُ اللَّهَ وَلاَ تُشْرِكُ بِهِ شَيْئًا وَتُقِيمُ الصَّلاَةَ وَتُؤْتِي الزَّكَاةَ وَتَصُومُ رَمَضَانَ وَتَحُجُّ الْبَيْتَ ‏"‏ ‏.‏ ثُمَّ قَالَ ‏"‏ أَلاَ أَدُلُّكَ عَلَى أَبْوَابِ الْخَيْرِ الصَّوْمُ جُنَّةٌ وَالصَّدَقَةُ تُطْفِئُ الْخَطِيئَةَ كَمَا يُطْفِئُ الْمَاءُ النَّارَ وَصَلاَةُ الرَّجُلِ مِنْ جَوْفِ اللَّيْلِ ‏"‏ ‏.‏ قَالَ ثُمَّ تَلاََ‏:‏ ‏‏(‏ تَتَجَافَى جُنُوبُهُمْ عَنِ الْمَضَاجِعِ ‏)‏ حَتَّى بَلَغَ‏:‏ ‏(‏يَعْمَلُونَ‏)‏ ثُمَّ قَالَ ‏"‏ أَلاَ أُخْبِرُكَ بِرَأْسِ الأَمْرِ كُلِّهِ وَعَمُودِهِ وَذِرْوَةِ سَنَامِهِ ‏"‏ ‏.‏ قُلْتُ بَلَى يَا رَسُولَ اللَّهِ ‏.‏ قَالَ ‏"‏ رَأْسُ الأَمْرِ الإِسْلاَمُ وَعَمُودُهُ الصَّلاَةُ وَذِرْوَةُ سَنَامِهِ الْجِهَادُ ‏"‏ ‏.‏ ثُمَّ قَالَ ‏"‏ أَلاَ أُخْبِرُكَ بِمَلاَكِ ذَلِكَ كُلِّهِ ‏"‏ ‏.‏ قُلْتُ بَلَى يَا نَبِيَّ اللَّهِ قَالَ فَأَخَذَ بِلِسَانِهِ قَالَ ‏"‏ كُفَّ عَلَيْكَ هَذَا ‏"‏ ‏.‏ فَقُلْتُ يَا نَبِيَّ اللَّهِ وَإِنَّا لَمُؤَاخَذُونَ بِمَا نَتَكَلَّمُ بِهِ فَقَالَ ‏"‏ ثَكِلَتْكَ أُمُّكَ يَا مُعَاذُ وَهَلْ يَكُبُّ النَّاسَ فِي النَّارِ عَلَى وُجُوهِهِمْ أَوْ عَلَى مَنَاخِرِهِمْ إِلاَّ حَصَائِدُ أَلْسِنَتِهِمْ

Arabic text of Jami' at-Tirmidhi 2616, as given on sunnah.com.