Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) narrates: A Bedouin came and urinated in the mosque. The Prophet (peace and blessings be upon him) gave an order about that spot, so it was dug up and a bucket of water was poured there. That Bedouin said: O Messenger of Allah, a man loves a people but does not do deeds like theirs? The Prophet (peace and blessings be upon him) said: "A man will be with the one whom he loves."
Imam Abu Ya'la recorded it; its chain contains a narrator, Sim'an bin Malik. Imam Abu Zur'ah says: He is not strong. Ibn Khirash says: He is majhul (unknown). The remaining narrators of this narration are the narrators of the "Sahih".
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الطهارة / 1579