It is recommended for every person present to throw three handfuls of earth
It is narrated from Abu Hurayrah (may Allah be pleased with him) that the Prophet ﷺ led a funeral prayer, then he ﷺ came to the grave of the deceased:
فحثى عليه من قبل رأسه ثلاثا
“And he ﷺ threw three handfuls of earth from the direction of its head.”
Reference: Sahih: Sahih Ibn Majah: 1271, Kitab ma ja’a fi al-Janaiz: Bab ma ja’a fi hathw al-turab fi al-qabr, Ibn Majah: 1565. Hafiz Busiri (may Allah have mercy on him) declared it sahih (authentic). Misbah al-Zujajah: 511/1