Mishkat al-Masabih
Ibn ‘Abbas said, “Studying together for an hour during the night is better than spending the whole night in devotions.” Darimi transmitted it.
وَعَن ابْن عَبَّاس قَالَ: تَدَارُسُ الْعِلْمِ سَاعَةً مِنَ اللَّيْلِ خَيْرٌ من إحيائها. رَوَاهُ الدَّارمِيّ
Reference