Burayda reported,

The Messenger of Allah ﷺ said, "I had previously forbidden you from eating the meat of sacrificial animals beyond three days, from drinking nabidh except what was prepared in a waterskin, and from visiting graves. Now, eat from the meat of the sacrificial animals as you wish, take provisions from it, and store it away. Whoever wishes to visit graves may do so, for it brings the Hereafter to mind. Drink, but avoid every intoxicant."

Nasai 4435

Sahih

أخبرنا العباس بن عبد العظيم العنبري عن الأحوص بن جواب عن عمار بن رزيق عن أبي إسحق عن الزبير بن عدي

عن ابن بريدة عن أبيه قال

قال رسول الله ﷺ إني كنت نهيتكم عن لحوم الأضاحي بعد ثلاث وعن النبيذ إلا في سقاء وعن زيارة القبور فكلوا من لحوم الأضاحي ما بدا لكم وتزودوا وادخروا ومن أراد زيارة القبور فإنها تذكر الآخرة واشربوا واتقوا كل مسكر

النسائي 4435صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Sacrificial animals
Chapter
Permission for that
Numbering
Darussalam 4435
Nasai 4435