Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) narrates from Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) that he said: "I said: 'O Messenger of Allah (peace and blessings be upon him)! Allow me to strike off the head of Hatib, for he has committed disbelief.' He (peace and blessings be upon him) said: 'O Ibn al-Khattab! How do you know? Perhaps Allah Almighty looked at the state of the people of Badr and said: Do whatever you wish, I have forgiven you.'"
The wording of both of them is the same, except that Abd al-Malik said: "He looked towards the state of the people of Badr."
It has a supporting narration in the Sahih from the hadith of Sayyiduna Ali bin Abi Talib (may Allah be pleased with him).
And Abu Abdullah Muhammad bin Abi Nasr al-Humaydi (may Allah have mercy on him) mentioned that al-Barqani (may Allah have mercy on him) said that Imam Muslim (may Allah have mercy on him) recorded this hadith; he said: And Abu Mas'ud al-Dimashqi (may Allah have mercy on him) and Khalaf al-Wasiti (may Allah have mercy on him) did not mention it in al-Atraf.
I say: And we have not seen it in Sahih Muslim.