Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) says: Whoever's prayer does not command him to do good and does not forbid him from wrongdoing keeps moving farther away from Allah Almighty.
This narration was recorded by Imam al-Tabarani in al-Mu'jam al-Kabir, and its narrators are the narrators of the "Sahih".