Jabir b. 'Abdullah reported that Messenger of Allah ( ﷺ) came to the grave of 'Abdullah b. Ubayy as he was placed in that. The rest of the hadith is the same.
سَمِعْتُ جَابِرَ بْنَ عَبْدِ اللَّهِ يَقُولُ جَاءَ النَّبِيُّ ﷺ إِلَى عَبْدِ اللَّهِ بْنِ أُبَىٍّ بَعْدَ مَا أُدْخِلَ حُفْرَتَهُ فَذَكَرَ بِمِثْلِ حَدِيثِ سُفْيَانَ