وَمِنْ مُسْنَدِ عَلِيِّ بْنِ أَبِي طَالِبٍ رَضِيَ اللَّهُ عَنْهُ
5  
Musnad 'Ali Ibn Abi Talib
Musnad Ahmad 1236, 1237
It was narrated from ‘Ali (رضي الله عنه) that The Messenger of Allah (ﷺ) forbade visiting the graves, (some types of) vessels, and keeping the sacrificial meat after three days. Then he said:
“I used to forbid you to visit the graves, but now visit them, for they remind you of the Hereafter. And I forbade you to drink from (certain type of) vessels, but now drink from them, but avoid everything that causes intoxication. And I forbade you to keep the sacrificial meat after three days, but now keep it as long as you wish.` It was narrated that ‘Ali (رضي الله عنه) said: The Messenger of Allah (ﷺ) forbade visiting graves... and he narrated a similar report, except that he said: `and beware of every intoxicant.`
حَدَّثَنَا يَزِيدُ، أَنْبَأَنَا حَمَّادُ بْنُ سَلَمَةَ، عَنْ عَلِيِّ بْنِ زَيْدٍ، عَنْ رَبِيعَةَ بْنِ النَّابِغَةِ، عَنْ أَبِيهِ، عَنْ عَلِيٍّ، قَالَ إِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ نَهَى عَنْ زِيَارَةِ الْقُبُورِ وَعَنْ الْأَوْعِيَةِ وَأَنْ تُحْبَسَ لُحُومُ الْأَضَاحِيِّ بَعْدَ ثَلَاثٍ ثُمَّ قَالَ إِنِّي كُنْتُ نَهَيْتُكُمْ عَنْ زِيَارَةِ الْقُبُورِ فَزُورُوهَا فَإِنَّهَا تُذَكِّرُكُمْ الْآخِرَةَ وَنَهَيْتُكُمْ عَنْ الْأَوْعِيَةِ فَاشْرَبُوا فِيهَا وَاجْتَنِبُوا كُلَّ مَا أَسْكَرَ وَنَهَيْتُكُمْ عَنْ لُحُومِ الْأَضَاحِيِّ أَنْ تَحْبِسُوهَا بَعْدَ ثَلَاثٍ فَاحْبِسُوا مَا بَدَا لَكُمْ.

حَدَّثَنَاه عَفَّانُ حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ أَخْبَرَنَا عَلِيُّ بْنُ زَيْدٍ عَنْ رَبِيعَةَ بْنِ النَّابِغَةِ عَنْ أَبِيهِ عَنْ عَلِيٍّ قَالَ نَهَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَنْ زِيَارَةِ الْقُبُورِ فَذَكَرَ مَعْنَاهُ إِلَّا أَنَّهُ قَالَ وَإِيَّاكُمْ وَكُلَّ مُسْكِرٍ‏.‏

Grade: Sahih, because of corroborating evidence; this is a da'eef isnad because of the weakness of Ali bin Zaid and Rabee'ah bin an-Nabighah and his father are unknown], Sahih because of corroborating eviden (Darussalam)
Reference : Musnad Ahmad 1236, 1237
In-book reference : Book 5, Hadith 644