It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "I was a witness over them as long as I remained among them."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9746