Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said: "Whoever is not commanded to do good and restrained from evil by his prayer gains nothing from it except greater distance from Allah."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 8511