Ibn Mas’ud on Salat: No prayer unless it prohibits from evil

Ibn Kathir reported: Abdullah ibn Mas’ud, may Allah be pleased with him, said, “There is no prayer for one who does not obey the prayer, and obedience to prayer is to stop committing debauchery and evil.”

Source: Tafsīr Ibn Kathīr 29:45

عن ابن كثير قال قال عبد الله بن مسعود رضي الله عنه لَا صَلَاةَ لِمَنْ لَمْ يُطِعِ الصَّلَاةَ وَطَاعَةُ الصَّلَاةِ تَنْهَاهُ عَنِ الْفَحْشَاءِ وَالْمُنْكَرِ

29:45 تفسير ابن كثير