Mishkat
al-Masabih
مشكاة المصابيح
Oaths and Vows
كتاب الإيمان والنذور
Chapter 1b: Vows - Section 2
باب في النذور - الفصل الثاني
Mishkat al-Masabih 3440
Jabir b. ‘Abdallah told that a man got up on the day of the Conquest and said, “ Messenger of Allah , I have vowed to Allah who is great and glorious that if Allah conquers Mecca at your hands I shall pray two rak'as in Jerusalem.” He replied, “Pray here.” He repeated his statement to him and he replied, “Pray here.” He again repeated it to him and he replied, “Pursue your own course, then.” Abu Dawud and Darimi transmitted it.
وَعَن جَابر بن عبد الله: أَنَّ رَجُلًا قَامَ يَوْمَ الْفَتْحِ فَقَالَ: يَا رَسُول الله لِلَّهِ عَزَّ وَجَلَّ إِنْ فَتَحَ اللَّهُ عَلَيْكَ مَكَّةَ أَنْ أُصَلِّيَ فِي بَيْتِ الْمَقْدِسِ رَكْعَتَيْنِ قَالَ: «صلى الله عَلَيْهِ وَسلم هَهُنَا» ثمَّ عَاد فَقَالَ: «صل هَهُنَا» ثُمَّ أَعَادَ عَلَيْهِ فَقَالَ: «شَأْنَكَ إِذًا» . رَوَاهُ أَبُو دَاوُد والدارمي
In-book reference: Mishkat al-Masabih Book 15 Chapter 1b Hadith 1