Narrated Jabir ibn Abdullah: A man stood on the day of Conquest (of Makkah) and said: Messenger of Allah, I have vowed to Allah that if He grants conquest of Makkah at your hands, I shall pray two rak'ahs in Jerusalem. He replied: Pray here. He repeated (his statement) to him and he said: Pray here. He again repeated (his statement) to him. He (the Prophet) replied: Pursue your own course, then. Abu Dawud said: A similar tradition has been narrated by Abdur-Rahman bin Awf from the Prophet ﷺ.
Hadith Referenceسنن ابي داود / كتاب الأيمان والنذور / 3305
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:إسناده صحيح, مشكوة المصابيح (3440)
Hadith Takhrij« تفرد بہ أبوداود، (تحفة الأشراف: 2406)، وقد أخرجہ: مسند احمد (3/363)، سنن الدارمی/النذور 4 (2384) (صحیح) »
Narrated Jabir (bin 'Abdullah) (RA): A man said on the day of the Fath, "O Messenger of Allah, I have vowed that if Allah opens the conquest of Makkah at your hands I shall pray in Jerusalem." He replied, "Pray here." He asked him again and he replied, "Pray here." He asked him again and he replied, "It's up to you, then." [Reported by Ahmad and Abu Dawud. al-Hakim graded it Sahih (authentic)].