وَعَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ رَضِيَ اللَّهُ عَنْهُ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ نَحْوُهُ وَفِيهِ: ((وَنَهَيْتُكُمْ عَنْ زِيَارَةِ الْقُبُورِ، فَإِنْ زُرْتُمُوهَا فَلَا تَقُولُوا هُجْرًا))
Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) also narrated a similar hadith from the Noble Prophet (peace and blessings be upon him). However, in it are these words: I had forbidden you from visiting graves, but now if you visit the graveyard, do not utter any obscene words.