ENOfficial
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.
Source: sunnah.com
Other translations
Arabic
وَعَنِ ابْنِ عَبَّاسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «أَوَّلُ مَنْ يُدْعَى إِلَى الْجَنَّةِ يَوْمَ الْقِيَامَةِ الَّذِينَ يَحْمَدُونَ اللَّهَ فِي السَّرَّاءِ وَالضَّرَّاءِ» . رَوَاهُمَا الْبَيْهَقِيُّ فِي شُعَبِ الْإِيمَان
sunnah.com