The supplication when placing the deceased in the grave:
It is narrated from Abdullah ibn Umar (may Allah be pleased with them both) that the Messenger of Allah ﷺ said:
“When you lower the deceased into the grave, recite this supplication.”
بسم الله، وعلى سنة رسول الله صلى الله عليه وسلم
“With the name of Allah, and according to the purified Sunnah of the Messenger of Allah ﷺ (we bury this deceased person).”
The supplication at the grave after the burial:
It is narrated from Sayyiduna Uthman ibn Affan (may Allah be pleased with him) that when the Messenger of Allah ﷺ finished burying the deceased, he would stand at the grave and say: “Pray for forgiveness and steadfastness for your Muslim brother, for he is now going to be questioned.”
اللهم اغفر له اللهم تبته
“O Allah! Forgive him. O Allah! Keep him steadfast.”
Understanding the hadith:
Making a collective supplication after the funeral prayer is not at all established from the Sunnah of the Prophet ﷺ, because many Sunnah supplications have already been made in the funeral prayer. Had any shortfall or room remained, the Noble Prophet ﷺ, who was eager for the forgiveness of his Ummah, would certainly have told us, but he did not give guidance on this occasion. Now, if some follower of desires acts on his own whim and makes a collective supplication, he will fall into innovation (bid’ah), and the destination of innovation is Hell. Now it is up to you: either go against the word of the Noble Prophet ﷺ and purchase Hell, or act upon the Sunnah of the Prophet ﷺ and become an heir of the Gardens of Paradise.