What was narrated concerning visiting the graves of the idolaters Sunan Ibn Majah 1572

Arabic hadith text
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا مُحَمَّدُ بْنُ عُبَيْدٍ، حَدَّثَنَا يَزِيدُ بْنُ كَيْسَانَ، عَنْ أَبِي حَازِمٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ زَارَ النَّبِيُّ ـ صلى الله عليه وسلم ـ قَبْرَ أُمِّهِ فَبَكَى وَأَبْكَى مَنْ حَوْلَهُ فَقَالَ: ‏"‏اسْتَأْذَنْتُ رَبِّي فِي أَنْ أَسْتَغْفِرَ لَهَا فَلَمْ يَأْذَنْ لِي وَاسْتَأْذَنْتُ رَبِّي فِي أَنْ أَزُورَ قَبْرَهَا فَأَذِنَ لِي فَزُورُوا الْقُبُورَ فَإِنَّهَا تُذَكِّرُكُمُ الْمَوْتَ ‏"
Translation
It wasnarrated that Abu Hurairah said

“The Prophet (ﷺ) visitedthegrave of his mother and wept, causing the people around him toweep.Then he said: ‘I asked my Lord for permission to seekforgivenessfor her, but He did not give me permission. Then I askedmy Lord forpermission to visit her grave and He gave me permission.So visit thegraves, for they will remind you of death.’”