Yazid bin Thabit (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) offered the funeral prayer at a grave and said four takbirs.