Muhammad bin al-Zubayr al-Hanzali narrates from his father that a man told him that he asked Sayyiduna Imran bin Husayn (may Allah be pleased with him) about a man who swore that he would not pray in the mosque of his people. Sayyiduna Imran bin Husayn (may Allah be pleased with him) said: I heard the Messenger of Allah (peace and blessings be upon him) saying: "There is no vow in disobedience to Allah; its expiation is the expiation of an oath."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأيمان / 20070