“The Messenger of Allah (ﷺ) said: ‘The niche-grave is for us and the ditch-grave is for others.’”
Sunan Ibn Majah Book 6, Hadith 123