It was the practice of the Prophet (peace and blessings be upon him):
"He (peace and blessings be upon him) would take good omens and would not take bad omens, and he liked a good name."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 4904
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[حم] عن ابن عباس. الصحيحة ٧٦٢: الطيالسي، أبو الشيخ، البغوي، الضياء.