Ata' bin Abi Rabah (may Allah have mercy on him) said: On the day of the Conquest of Makkah, Sayyiduna al-Sharid (may Allah be pleased with him) came to the Prophet (peace and blessings be upon him) and said: O Messenger of Allah! I made a vow that if Allah granted you the conquest of Makkah, I would pray in Bayt al-Maqdis. The Prophet (peace and blessings be upon him) said: "Pray here" — he said it three times.
Hadith Referenceالمعجم الكبير للطبراني / باب الشين / 7227