The Messenger of Allah ﷺ was asked about the sacrifice offered for a newborn, and he said, "I do not like disobedience." It seems he disliked only the word itself. Then he said, "Whoever has a child born to him and wishes to offer a sacrifice for his child may do so."
حدثني يحيى عن مالك عن زيد بن أسلم
سئل رسول الله ﷺ عن العقيقة فقال لا أحب العقوق وكأنه إنما كره الاسم وقال من ولد له ولد فأحب أن ينسك عن ولده فليفعل