The Prophet ﷺ said: “Whoever attends the funeral until the prayer is offered has a qirat of reward, and whoever attends until the burial has two.” He was asked what the two qirats are, and said: “Like two great mountains.”
Sahih al-Bukhari 1325 · Sahih Muslim 945 · from Abu Hurayrah