It was narrated from ‘Abdullah bin Abu Awfa that the Messenger of Allah (ﷺ) prayed two Rak’ah on the day when he was given the glad tidings of the head (death) of Abu Jahl.
حَدَّثَنَا أَبُو بِشْرٍ، بَكْرُ بْنُ خَلَفٍ حَدَّثَنَا سَلَمَةُ بْنُ رَجَاءٍ، حَدَّثَتْنِي شَعْثَاءُ، عَنْ عَبْدِ اللَّهِ بْنِ أَبِي أَوْفَى، أَنَّ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ صَلَّى يَوْمَ بُشِّرَ بِرَأْسِ أَبِي جَهْلٍ رَكْعَتَيْنِ .
IbnMaja
Establishing the Prayer and the Sunnah Regarding Them • Hadith 1391