Sunan Ibn Majah
It was narrated from Anas bin Malik that the Prophet (ﷺ) said: “There is nothing standing between a person and Shirk (polytheism) except leaving the prayer, so if he leaves it he has committed Shirk.”
حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ إِبْرَاهِيمَ الدِّمَشْقِيُّ، حَدَّثَنَا الْوَلِيدُ بْنُ مُسْلِمٍ، حَدَّثَنَا الأَوْزَاعِيُّ، عَنْ عَمْرِو بْنِ سَعْدٍ، عَنْ يَزِيدَ الرَّقَاشِيِّ، عَنْ أَنَسِ بْنِ مَالِكٍ، عَنِ النَّبِيِّ ـ صلى الله عليه وسلم ـ قَالَ " لَيْسَ بَيْنَ الْعَبْدِ وَالشِّرْكِ إِلاَّ تَرْكُ الصَّلاَةِ، فَإِذَا تَرَكَهَا فَقَدْ أَشْرَكَ " .
Grade: Da’if (Darussalam)
Reference