It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "Let none eat your food except a God-fearing person, and do not keep company with anyone except a believer."
It is also narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The example of the believer and the example of faith is like that of a horse tied to its peg: it wanders about and then returns to its peg. And indeed the believer (sometimes) falls into heedlessness and slips, but then he returns to faith. So feed your food to the God-fearing, and direct your kindness towards the believers."
Imam Ahmad bin Mani' narrated this through Ibn Lahi'ah, and Imam Abu Ya'la al-Mawsili with the chain of Sa'id bin Abi Ayyub; Imam Ahmad bin Hanbal and Imam Ibn Hibban in his "Sahih" also recorded it through the route of Sa'id bin Abi Ayyub, and this narration will come again shortly in the Book of Zuhd (Asceticism).
Hadith Takhrij«أخرجه مسند أحمد برقم: 11132، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 17534، وأخرجه صحيح ابن حبان برقم: 616، وأخرجه شرح السنة برقم: 3485»