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 (ﷺ).) (IT)
English reference (IT): Book 12, Hadith 1389 (IT)
Arabic reference (IT): Book 12, Hadith 1348 (IT)