A woman came to the Messenger of Allah ﷺ and said, "Messenger of Allah, I have given birth to a boy and named him Muhammad and given him the kunya Abu al-Qasim. I have been told that you dislike this."He replied, "What is it that has made my name permissible but my kunya forbidden, or what is it that has made my kunya forbidden but my name permissible?"
حدثنا النفيلي حدثنا محمد بن عمران الحجبي عن جدته صفية بنت شيبة
جاءت امرأة إلى رسول الله ﷺ فقالت يا رسول الله إني قد ولدت غلاما فسميته محمدا وكنيته أبا القاسم فذكر لي أنك تكره ذلك فقال ما الذي أحل اسمي وحرم كنيتي أو ما الذي حرم كنيتي وأحل اسمي