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