Hadithcore
Mishkat al-Masabih, 2308

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 <i>Shu'ab al-iman</i>.

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

References1 variant
In-Book Reference
Book 9, Hadith 82