“We went out with the Messenger of Allah (ﷺ) for a funeral, and we came to a grave. He sat down and we sat down, as if there were birds on our heads.”
Sunan Ibn Majah Book 6, Hadith 117