Musnad Ahmad 1237
حَدَّثَنَاه عَفَّانُ ، حَدَّثَنَا حَمَّادُ بْنُ سَلَمَةَ ، أَخْبَرَنَا عَلِيُّ بْنُ زَيْدٍ ، عَنْ رَبِيعَةَ بْنِ النَّابِغَةِ ، عَنْ أَبِيهِ ، عَنْ عَلِيٍّ ، قَالَ: نَهَى رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ" عَنْ زِيَارَةِ الْقُبُورِ"، فَذَكَرَ مَعْنَاهُ، إِلَّا أَنَّهُ قَالَ:" وَإِيَّاكُمْ وَكُلَّ مُسْكِرٍ".
ʿAffan narrated it to us; [he said:] Hammad ibn Salamah narrated to us; [he said:] ʿAli ibn Zayd informed us, from Rabiʿah ibn an-Nabighah, from his father, from ʿAli, who said: The Messenger of Allah ﷺ forbade visiting graves — and he mentioned something with the same meaning, except that he said: "And beware of every intoxicant."