Anas reported that the Messenger of Allah (ﷺ) observed prayer on the grave. Sahih Muslim Book 11, Hadith 92