Abu Hurairah (RAA) narrated that Allah's Messenger (ﷺ) said:
"He who can afford it but did not offer a sacrifice must not come near our place of prayer." Related by Ahmad and Ibn Majah. Al-Hakim graded it as Sahih. Other Imams said that it is Mawquf (i.e. it is not connected to the Prophet (ﷺ).) (PT)
English reference (PT): Book 12, Hadith 1389 (PT)
Arabic reference (PT): Book 12, Hadith 1348 (PT)