The ant dropped his dead friend and went a way twice. But he finally came back and did it. Please watch to the end.
Ant carrying dead ant
Necrophoresis is a sanitation behavior found in social insects – such as ants, bees, wasps, and termites – in which they carry away the dead bodies of members of their colony from the nest or hive area. The term was introduced in 1958 by E.O. Wilson and his colleagues. -- Wikipedia