Hadith 889

وَعَنِ الْحَسَنِ بْنِ عَمْرٍو الْفُقَيْمِيِّ، عَنْ مُنْذِرٍ الثَّوْرِيِّ، عَنْ مُحَمَّدِ ابْنِ الْحَنَفِيَّةِ قَالَ‏:‏ لَيْسَ بِحَكِيمٍ مَنْ لاَ يُعَاشِرُ بِالْمَعْرُوفِ مَنْ لاَ يَجِدُ مِنْ مُعَاشَرَتِهِ بُدًّا، حَتَّى يَجْعَلَ اللَّهُ لَهُ فَرَجًا أَوْ مَخْرَجًا‏.‏
It is narrated from Muhammad ibn al-Hanafiyyah, may Allah have mercy on him, that he said: A person who cannot avoid mixing with certain people, and does not behave well with them, is not wise or intelligent. He should continue to get along with those whom it is necessary to live with, until Allah provides a way out for him.
Hadith Reference الادب المفرد / كتاب / 889
Hadith Grading الألبانی: صحيح
Hadith Takhrij «صحيح : أخرجه ابن أبى شيبة : 35704 و ابن أبى الدنيا فى الحلم : 108 والبيهقي فى الآداب : 224 و ابن المقري فى معجمه : 491 و أبونعيم فى الحلية : 175/3»