It is narrated from Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) that a man had vowed to pray in Bayt al-Maqdis (Jerusalem). Then he asked the Messenger of Allah (peace and blessings be upon him) about it, and the Messenger of Allah (peace and blessings be upon him) said to him: "Pray here (that is, in al-Masjid al-Haram)." He said again: "O Messenger of Allah! But I vowed to pray in Bayt al-Maqdis." He (peace and blessings be upon him) said again: "Pray here." Yazid, the narrator, said: I think he (peace and blessings be upon him) said to him the third time: "Then pray where you vowed."
Imam Abd bin Humayd also transmitted this same report with his chain from Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both): "A man said: 'O Messenger of Allah! I vowed that if Allah Almighty granted you the conquest of Makkah, I would go and pray in Bayt al-Maqdis.' The Prophet (peace and blessings be upon him) said: 'Pray here.' The man repeated his request to the Prophet (peace and blessings be upon him) once or twice, and when he insisted a great deal, the Prophet (peace and blessings be upon him) said: 'Sha'naka idhan' (Then it is up to you, that is, do as you intended)."
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده صحيح
Hadith Takhrij«يزيد بن هارون، وحماد بن سلمة، وعطاء بن أبي رباح: ثقات؛ وحبيب المعلم: صدوق (من الحفظ)؛ وأخرجه أبو داود (3305) من طريق حماد به.» «أخرجه سنن أبي داود برقم: 3305، وأخرجه مسند أحمد برقم: 22658، وأخرجه سنن الدارمي برقم: 2339، وأخرجه مصنف ابن أبي شيبة برقم: 2، وأخرجه المستدرك على الصحيحين برقم: 7909، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 6983»