Sahih Muslim, Book 35, Hadith 54 (Muslim 5072)

Umm Salama reported Allah's Apostle (ﷺ) as saying:

If anyone of you intends to offer sacrifice he should not get his hair cut or nails trimmed.