Sayyiduna Usamah al-Hudhali (may Allah be pleased with him) narrates from the Prophet of Allah (peace and blessings be upon him) that he (peace and blessings be upon him) said: "When a group from among the nations bears witness (at the funeral prayer) and they number forty or more, Allah Almighty accepts their testimony," or he (peace and blessings be upon him) said: "(He) confirms their testimony."
Al-Hasan bin Ali al-Ma'mari (may Allah have mercy on him) narrated it through Khalaf bin Salim, Yahya bin Sa'id, Shu'bah and Mubashshir bin Abi al-Malih, from his father (Abu al-Malih), from Sayyiduna Ibn Umar (may Allah be pleased with them both), from the Prophet (peace and blessings be upon him), with the like of it.
And it is possible that Abu al-Malih (may Allah have mercy on him) heard it both from his father and from Sayyiduna Ibn Umar (may Allah be pleased with them both). And Allah knows best.