It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "People in gatherings are of three kinds: the one who gains, the one who stays safe, and the one who is ruined. The one who gains is he who remembers Allah, the Mighty and Majestic, abundantly in his gathering; the one who stays safe is he who remains silent, with nothing (of burden) against him and nothing (of reward) for him; and the one who is ruined is he whose speech and actions are in disobedience to Allah, the Mighty and Majestic."
In another narration, Sayyiduna Abu Hurayrah (may Allah be pleased with him) says (as his own statement, mawquf): "Gatherings are of three kinds: among them is one who gains, one who stays safe and one who is ruined. The one who gains is a servant who remembered Allah Almighty, so Allah remembered him; the one who stays safe is a servant who dictated to his recording (angel) neither good nor evil; and the one who is ruined is he who indulged in falsehood, so he brings about his own ruin."