The Messenger of Allah ﷺ said, "Allah Almighty does not accept the prayer of a man who has any trace of khaluq perfume on his body."
حدثنا زهير بن حرب الأسدي حدثنا محمد بن عبد الله ابن الزبير الأسدي حدثنا أبو جعفر الرازي عن الربيع بن أنس عن جديه قالا سمعنا
قال رسول الله ﷺ لا يقبل الله تعالى صلاة رجل في جسده شيء من خلوق
[Its chain is daif]. Ibn Abdul-Barr also reported it in al-Tamhid, 2/182, 183, from the hadith of Abu Dawud through the same chain. Ahmad reported it, 4/403, from Muhammad bin Abdullah Zubayri Asadi through the same chain, without the last part.Zayd and Ziyad, the two grandfathers of Rabi, are majhul (Taqrib).