Sahih Muslim, Book 35, Hadith 55 (Muslim 5073)

Umm Salama reported (these words) directly from Allah's Messenger (ﷺ):

If anyone has in his possession a sacrificial animal to offer as a sacrifice (on 'Id al-Adha), he should not get his hair cut and nails trimmed after he has entered the first days of Dhu'l Hijja