(11) The Book of Prayer - Funerals
كتاب الجنائز
(23) Chapter: Praying over the grave
(23) باب الصَّلاَةِ عَلَى الْقَبْرِ ‏‏
Sahih Muslim 955 

Anas reported that the Messenger of Allah (ﷺ) observed prayer on the grave.

وَحَدَّثَنِي إِبْرَاهِيمُ بْنُ مُحَمَّدِ بْنِ عَرْعَرَةَ السَّامِيُّ، حَدَّثَنَا غُنْدَرٌ، حَدَّثَنَا شُعْبَةُ، عَنْ حَبِيبِ بْنِ الشَّهِيدِ، عَنْ ثَابِتٍ، عَنْ أَنَسٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم صَلَّى عَلَى قَبْرٍ ‏.‏
Reference : Sahih Muslim 955
In-book reference : Book 11, Hadith 92
USC-MSA web (English) reference : Book 4, Hadith 2087
  (deprecated numbering scheme)