Walid bin Uqbah (may Allah be pleased with him) said: When the Messenger of Allah (peace and blessings be upon him) conquered Makkah (the rest of the hadith is as in the first chain). Imam Ahmad (may Allah have mercy on him) said: It has also been reported that he soiled himself that day, and the Messenger of Allah (peace and blessings be upon him) found it distasteful; so he did not touch him nor supplicate for him. He was denied the blessing of the Messenger of Allah (peace and blessings be upon him) because of Allah's prior knowledge concerning him.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 17978