What helped the psalmist to withstand the pressures he experienced was his dedicating time to pore over God’s law with appreciation. In that way he came to love it.
إِنَّ مَا سَاعَدَ صَاحِبَ ٱلْمَزْمُورِ عَلَى ٱلصُّمُودِ فِي وَجْهِ ٱلضُّغُوطِ هُوَ تَخْصِيصُ ٱلْوَقْتِ لِلتَّأَمُّلِ مَلِيًّا فِي شَرِيعَةِ ٱللهِ .‏