Tawus (may Allah have mercy on him) said that the Messenger of Allah (peace and blessings be upon him) said: "The virtue of knowledge is greater than worship, and the foundation of the religion is wara' (scrupulous piety and abstinence)."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10923