Al-Barbahari reported: Ibn Abbas, may Allah be pleased with him, said, “Know that there are three tidings at the time of death. It will be said: Receive glad tings of the pleasure of Allah, O beloved of Allah, and Paradise! And it will be said: Receive tidings of the anger of Allah, O enemy of Allah, and the Hellfire! And it will be said: Receive tidings, O servant of Allah, of Paradise after retribution!”
Source: Sharḥ al-Sunnah 1/86
عن البربهاري قال ابن عباس رضي الله عنه واعلم أن البشارة عند الموت ثلاث بشارات يقال أبشر يا حبيب الله برضى الله والجنة ويقال أبشر يا عدو الله بغضب الله والنار ويقال أبشر يا عبد الله بالجنة بعد الانتقام
1/86 كتاب شرح السنة للبربهاري