It is narrated from Imam Makhul (may Allah have mercy on him) that he said: "If there is some virtue and merit in living together with people and in community, then certainly the safety and well-being of religion and faith lie in withdrawal and seclusion."
[Musaddad recorded it, and its chain is sahih (authentic).]
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الرقائق / 3241
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :—. » «انفرد به المصنف من هذا الطريق»