Ibn al-Mubarak reported: Ibn Abbas, may Allah be pleased with him, said, “Two moderate cycles of prayer in contemplation are better than praying the whole night with a neglectful heart.”
Source: al-Zuhd wal-Raqā’iq 288
عن ابن مبارك عَنِ ابْنِ عَبَّاسٍ رضي الله عنه قَالَ رَكْعَتَانِ مُقْتَصِدَتَانِ فِي تَفَكُّرٍ خَيْرٌ مِنْ قِيَامِ لَيْلَةٍ وَالْقَلْبُ سَاهٍ
288 الزهد والرقائق لابن المبارك باب الاعتبار والتفكر