Musnad Ahmad — Hadith 252 (KitabGrid sequence)
It was narrated from Ubaid bin Adam, Abu Maryam and Abu Shu`aib that:
حَدَّثَنَا أَسۡوَدُ بۡنُ عَامِرٍ، حَدَّثَنَا حَمَّادُ بۡنُ سَلَمَةَ، عَنۡ أَبِي سِنَانٍ، عَنۡ عُبَيۡدِ بۡنِ آدَمَ، وَأَبِي، مَرۡيَمَ وَأَبِي شُعَيۡبٍ أَنَّ عُمَرَ بۡنَ الۡخَطَّابِ، رَضِيَ اللَّهُ عَنۡهُ كَانَ بِالۡجَابِيَةِ فَذَكَرَ فَتۡحَ بَيۡتِ الۡمَقۡدِسِ قَالَ فَقَالَ أَبُو سَلَمَةَ فَحَدَّثَنِي أَبُو سِنَانٍ عَنۡ عُبَيۡدِ بۡنِ آدَمَ قَالَ سَمِعۡتُ عُمَرَ بۡنَ الۡخَطَّابِ رَضِيَ اللَّهُ عَنۡهُ يَقُولُ لِكَعۡبٍ أَيۡنَ تُرَى أَنۡ أُصَلِّيَ فَقَالَ إِنۡ أَخَذۡتَ عَنِّي صَلَّيۡتَ خَلۡفَ الصَّخۡرَةِ فَكَانَتۡ الۡقُدۡسُ كُلُّهَا بَيۡنَ يَدَيۡكَ فَقَالَ عُمَرُ رَضِيَ اللَّهُ عَنۡهُ ضَاهَيۡتَ الۡيَهُودِيَّةَ لَا وَلَكِنۡ أُصَلِّي حَيۡثُ صَلَّى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيۡهِ وَسَلَّمَ فَتَقَدَّمَ إِلَى الۡقِبۡلَةِ فَصَلَّى ثُمَّ جَاءَ فَبَسَطَ رِدَاءَهُ فَكَنَسَ الۡكُنَاسَةَ فِي رِدَائِهِ وَكَنَسَ النَّاسُ.
Translation
Aswad ibn Amir narrated to us: Hammad ibn Salamah narrated to us, from Abu Sinan, from Ubayd ibn Adam, Abu Maryam and Abu Shu'ayb, that Umar ibn al-Khattab رضي الله تعالى عنه was at al-Jabiyah. He mentioned the conquest of Jerusalem. He said: Abu Salamah said: Abu Sinan narrated to me, from Ubayd ibn Adam, who said: I heard Umar ibn al-Khattab رضي الله تعالى عنه ask Ka'b, 'Where do you think I should pray?' He answered, 'If you follow my advice, you will pray behind the Rock, so that all of Jerusalem will be before you.' Umar رضي الله تعالى عنه replied, 'You have imitated Judaism. No, I shall pray where the Messenger of Allah صلى الله عليه وآله وسلم prayed.' He went forward towards the qiblah and prayed. Then he came, spread out his cloak and swept the rubbish into it, and the people swept as well.
Ready.