Sa’d ibn Abi Waqqas reported: The Messenger of Allah, peace and blessings be upon him, said, “The virtue of knowledge is more beloved to me than the virtue of worship, and the best of your religion is cautious piety.”
Source: al-Ādāb lil-Bayhaqī 818
Grade: Sahih (authentic) according to Al-Albani
عَنْ سَعْدِ بْنِ أَبِي وَقَّاصٍ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَضْلُ الْعِلْمِ أَحَبُّ إِلَيَّ مِنْ فَضْلِ الْعِبَادَةِ وَخَيْرُ دِينِكُمُ الْوَرَعُ
818 الآداب للبيهقي الآداب للبيهقي باب من اتقى الشبهات مخافة الوقوع
4214 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الجامع