It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) forbade offering the funeral prayer between graves.
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated it from Asim except Hafs, and Husayn bin Yazid is alone in narrating it."
Related hadith on this topic