The Messenger of Allah ﷺ said, "I had forbidden you from visiting graves, but now visit them, for there is a lesson in them. I had forbidden you from nabidh, but now drink it, though I do not permit any intoxicant. And I had forbidden you from storing the meat of sacrificial animals, but now eat from it."
قال رسول الله ﷺ: إني نهيتكم عن زيارة القبور فزوروها، فإن فيها عبرة، ونهيتكم عن النبيذ فاشربوا، ولا أحل مسكرا، ونهيتكم عن الأضاحي فكلوا.
Ahmad (11329) narrated it from Yahya bin Adam, who said, Ibn Mubarak narrated to us, from Usamah, from Muhammad bin Yahya bin Habban, from his uncle, from Abu Saeed Khudri, who said, then he mentioned it.Its isnad is hasan because of Usamah, who is Ibn Zayd Laythi, for he is hasan al-hadith.Bayhaqi (8/311) narrated it through another route from Usamah, in abbreviated form, with the wording, "I forbade you from nabidh, so take heed and steep it, but I do not permit anything intoxicating."Dhahabi said in his Tahdheeb, "Its isnad is strong."