From Sahih Muslim (Hadith 7550):
Ibn Mas'ud said:Since our acceptance of Islam and the revelation of this verse in which Allah has shown annoyance to us:" Has not the time yet come for the believers that their hearts should be humble for the remembrance of Allah?" (lvii. 16), there was a gap of four years
Reference: Muslim 7550