It is narrated from Sayyiduna Abdullah bin Abi Awfa (may Allah be pleased with him): "He prayed two rak'ahs of the forenoon prayer, and his wife said to him: 'You prayed only two rak'ahs?' He said in reply: 'Indeed the Messenger of Allah (peace and blessings be upon him) prayed two rak'ahs of the forenoon prayer at the time when he (peace and blessings be upon him) was given the glad tidings of the victory and of the head of Abu Jahl being brought.'"
Abu Ya'la recorded it with a da'if (weak) chain, because one of its narrators, Salamah bin Raja', is da'if (weak), while the wording of Ibn Majah's narration is: "Indeed the Messenger of Allah (peace and blessings be upon him) prayed two rak'ahs on the day when he (peace and blessings be upon him) was given the glad tidings of the head of Abu Jahl being brought."