Jabir bin 'Abdullah reported that Allah's Messenger (ﷺ) came to the grave of 'Abdullah bin Ubayy as he was placed in that. The rest of the hadith is the same.
Hadith ReferenceSahih Muslim / Characteristics of The Hypocrites And Rulings Concerning Them / Hadith: 2773