Sayyiduna Anas (may Allah be pleased with him) narrates: The Prophet (peace and blessings be upon him) said: "You name them (the children) Muhammad, and then you curse them as well!"
Abu Ya'la and al-Bazzar recorded it. Its chain contains al-Hakam bin Atiyyah, whom Ahmad declared thiqah (trustworthy) while others declared him da'if (weak). The rest of its narrators are the narrators of the Sahih.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الأدب / 12839