The Reward for Glorifying, Praising, Declaring God’s Unity and His Greatness - Section 2 Mishkat al-Masabih 2308

Arabic hadith text
وَعَنِ ابْنِ عَبَّاسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «أَوَّلُ مَنْ يُدْعَى إِلَى الْجَنَّةِ يَوْمَ الْقِيَامَةِ الَّذِينَ يَحْمَدُونَ اللَّهَ فِي السَّرَّاءِ وَالضَّرَّاءِ» . رَوَاهُمَا الْبَيْهَقِيُّ فِي شُعَبِ الْإِيمَان
Translation

Ibn ‘Abbas reported God’s messenger as saying, “The first to be summoned to paradise on the day of resurrection will be those who praise God in prosperity and adversity.” Baihaqi transmitted the two traditions in Shu'ab al-iman.