وَعَن جَابر قَالَ: كُنْتُ مَعَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي سَفَرٍ فَلَمَّا قَدِمْنَا الْمَدِينَةَ قَالَ لِي: «ادْخُلِ الْمَسْجِدَ فَصَلِّ فِيهِ رَكْعَتَيْنِ» . رَوَاهُ البُخَارِيّ

I was with the Prophet on a journey, and when we came to Medina he said to me, “Enter the mosque and pray two rak’as in it.”

Bukhari transmitted it.