Sayyiduna Abu Umamah (may Allah be pleased with him) transmits this saying of the Prophet (peace and blessings be upon him): "Doing good is fitting only toward a person of noble lineage, or of religion, or one who is forbearing."
Al-Tabarani recorded it; its chain contains a narrator, Sulayman bin Salamah al-Khaba'iri, who is matruk (abandoned).
Sayyidah Aishah Siddiqah (may Allah be pleased with her) narrates: the Prophet (peace and blessings be upon him) said: "Let only a God-fearing person enter your house, and do your good only to a believer."
Al-Tabarani recorded it in al-Mu'jam al-Awsat, and its chain contains a narrator whom I do not know.
Sayyidah Aishah Siddiqah (may Allah be pleased with her) transmits this as a marfu' report: the Prophet (peace and blessings be upon him) said: "Doing good is fitting only toward a person of noble lineage or of religion, just as training is fitting only for a horse of good breed."
Al-Bazzar recorded it; its chain contains a narrator, Ubayd bin al-Qasim, who is a kadhdhab (liar).