Sahih Muslim, Book 4, Hadith 172 (Muslim 1003)

Abdullah (b. Mas'ud) said:

I was not with the Messenger of Allah (ﷺ) but I wish I were with him.