May Allah forgive Abu Abdul-Rahman. He has not lied, but he has forgotten or made a mistake. The Messenger of Allah ﷺ merely passed by a Jewish woman who was being mourned, and he said, "They are weeping over her while she is being punished."
أخبرنا قتيبة عن مالك بن أنس عن عبد الله بن أبي بكر عن أبيه عن عمرة أنها أخبرته أنها سمعت عائشة وذكر لها أن عبد الله بن عمر يقول إن الميت ليعذب ببكاء الحي عليه
يغفر الله لأبي عبد الرحمن أما إنه لم يكذب ولكن نسي أو أخطأ إنما مر رسول الله ﷺ على يهودية يبكى عليها فقال إنهم ليبكون عليها وإنها لتعذب
Muslim reported it (932/27), see the previous hadith from Qutayba, and Bukhari, Funerals, chapter on the saying of the Prophet ﷺ, "The deceased is punished for some of his family's weeping over him," etc., 1289, from the hadith of Malik through him, and it is in the Muwatta (Yahya) 1/234, and in the Kubra, 1983...