Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates: A man from the Ansar became blind, and he sent word to the Prophet (peace and blessings be upon him) asking him to mark out a place in his house as a mosque for him, so that he could pray there. The Prophet (peace and blessings be upon him) came, and the man's people gathered around him. One man was absent, so the Prophet (peace and blessings be upon him) asked: "What has become of so-and-so?" Someone among those present mentioned him (in a negative way). The Prophet (peace and blessings be upon him) said: "Did he not take part in the Battle of Badr?" They said: "Yes! But he has such-and-such (a fault)." The Prophet (peace and blessings be upon him) said: "Perhaps Allah Almighty looked upon the people of Badr and said: 'Do whatever you wish! I have forgiven you.'" (Allamah al-Haythami says:) I say: Abu Dawud and Ibn Majah have recorded part of this narration.
Al-Tabarani recorded it in al-Mu'jam al-Awsat, and its chain is good (jayyid).