عن أبي أيوب الأنصاري رضي الله عنه أن رسول الله صلى الله عليه وسلم قال: «لَا يَحِلُّ لِرَجُلٍ أَنْ يَهْجُرَ أَخَاهُ فَوْقَ ثَلَاثِ لَيَالٍ، يَلْتَقِيَانِ، فَيُعْرِضُ هَذَا وَيُعْرِضُ هَذَا، وَخَيْرُهُمَا الَّذِي يَبْدَأُ بِالسَّلَامِ».
The Prophet (may Allah's peace and blessings be upon him) forbade that a Muslim should desert his fellow Muslim for more than three nights. None of them greets the other or talks to him when they meet. The best of such two estranged persons is the one who tries to end their estrangement, so he greets the other first. The kind of desertion intended in this Hadīth is what a person engages in for his own sake.
However, a person may desert others for the sake of Allah Almighty, like deserting sinners, heretic innovators, and bad companions. This does not have a time limit. Instead, it is contingent on a cause and should end when the cause is no longer there.
Download for free and never miss a prayer again