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