It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "There are three whose prayer Allah does not accept: a man who is the imam of a people while they dislike him, a woman who spends the night while her husband is angry with her, and two brothers who have cut off relations with each other."
Imam Ibn Majah (may Allah have mercy on him) narrated it from Muhammad bin Umar bin Hayyaj (may Allah have mercy on him), from Yahya bin Abd al-Rahman al-Arhabi (may Allah have mercy on him), like the narration of al-Tustari (may Allah have mercy on him).
Abu Hatim al-Busti (may Allah have mercy on him) narrated it from al-Hasan bin Sufyan (may Allah have mercy on him), from Abu Kurayb (may Allah have mercy on him), and at its end is: "and two brothers who have cut off relations with each other."
Related hadith on this topic