Answered by Shaykh Faraz Rabbani
Which is better: seeking knowledge, or devoting oneself to worship?

In the Name of Allah, Most Merciful and Compassionate. All praise is to Allah, Lord of the Worlds. And the blessings and peace of Allah be upon His Chosen Messenger, the Prophet Muhammad, his family, companions, and followers.
Imam al-Dhahabi dealt with this beautifully in his Siyar A`lam al-Nubala’, saying
“As for the one who is sincere to Allah in seeking knowledge, with a sharp mind, then seeking sacred knowledge is superior for them. However, this needs to be with a portion of prayer and worship. If you see them him determined in seeking knowledge yet with no share of acts of worship, then this is a lazy and careless individual, and not true in his claim to having a good intention…” [7.167]
Wassalam,
Faraz.
وأما من كان طلبه الحديث والفقه غية ومحبة نفسانية فالعبادة في حقه أفضل بلمابينهما أفعل تفضيل وهذا تقسيم في الجملة فقلَّ – والله – من رأيته مخلصا فيطلبالعلم .دعنا من هذا كله فليس طلب الحديث اليوم على الوضع المتعارف منحيز طلبالعلم، بل اصطلاح وطلب أسانيد عالية وأخذ عن شيخ لا يعي وتسميعلطفليلعب ولا يفهم أو لرضيع يبكي أو لفقيه يتحدث مع حدث أو آخرينسخوفاضلهم مشغول عن الحديث بكتابة الأسماء أو بالنعاس والقارىء إن كانلهمشاركة فليس عنده من الفضيلة أكثر من قراءة ما في الجزء سواء تصحفعليهالاسم أو اختبط المتن أو كان من الموضوعات فالعلم عن هؤلاء بمعزل والعمللاأكاد أراه بل أرى امورا سيئة نسأل الله العفو ) أنتهى كلامه – رحمه الله –
Wassalam,
Faraz Rabbani,
Amman, Jordan.