Sunan an-Nasa'i, Book 20, Hadith 38 (In-Book)

It was narrated from Anas that: On the night on which he was taken on the Night Journey, the Prophet passed by Musa, peace be upon him, and he was praying in his grave.

أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ الأَعْلَى، قَالَ حَدَّثَنَا مُعْتَمِرٌ، عَنْ أَبِيهِ، عَنْ أَنَسٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم لَيْلَةَ أُسْرِيَ بِهِ مَرَّ عَلَى مُوسَى عَلَيْهِ السَّلاَمُ وَهُوَ يُصَلِّي فِي قَبْرِهِ ‏.‏

sunnah.com