In The Name of Allaah, The Most Merciful, The Bestower of Mercy

Ibn Abbaas [radiyallaahu-anhumaa] said: Well-being and safety is of ten parts; nine parts are found in silence [i.e. speak good or remain silent] and the tenth part is found in isolating oneself from the people.

[Sifatus Safwah 4/257]

Maalik Bin Deenaar [rahimahullaah] said: The Abraar used to advise one another with three affairs: Restraint of the tongue, seeking the forgiveness of Allaah a lot and isolating oneself from the people.

[Hilyatul Awliyaa 2/277]

NB: Isolating oneself from the people: Al-Khattaabee [rahimahullaah] stated in Al-Uzlah pages 12-13 that the intent behind this does not mean that a person abandons the obligatory gatherings [i.e. the Salawaat, the Jumu’ah prayers and other gatherings where one’s presence is required]. It neither means that one neglects the rights of the people and the good customary practices established amongst them nor does it mean that one refrains from replying to their greetings of Salaam; rather this isolation necessitates abandoning that excess and increased intermingling, for which there is no need.