Sahih Muslim – Hadith No : 2258

Anas reported that the Apostle of Allah (may peace be upon him) observed prayer on the grave.

Hadith In Arabic Text :

وحدثني إبراهيم بن محمد بن عرعرة السامي، حدثنا غندر، حدثنا شعبة، عن حبيب بن الشهيد، عن ثابت، عن أنس، أن النبي صلى الله عليه وسلم صلى على قبر ‏.‏

Chapter : The Book of Prayer (Funerals) – كتاب الجنائز