The Messenger of Allah ﷺ said, "What stands between us and them is the prayer. Whoever abandons it has disbelieved."
حدثنا زيد بن الحباب حدثنا حسين بن واقد حدثنا
قال رسول الله ﷺ بيننا وبينهم ترك الصلاة فمن تركها فقد كفر
Its isnad is sahih. It was previously mentioned at 22833.