وَعَنِ الْحَسَنِ بْنِ عَمْرٍو الْفُقَيْمِيِّ، عَنْ مُنْذِرٍ الثَّوْرِيِّ، عَنْ مُحَمَّدِ ابْنِ الْحَنَفِيَّةِ قَالَ: لَيْسَ بِحَكِيمٍ مَنْ لاَ يُعَاشِرُ بِالْمَعْرُوفِ مَنْ لاَ يَجِدُ مِنْ مُعَاشَرَتِهِ بُدًّا، حَتَّى يَجْعَلَ اللَّهُ لَهُ فَرَجًا أَوْ مَخْرَجًا.
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.