It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "If hardship were to go into a hole, ease would enter it after it and drive it out." Then the Messenger of Allah (peace and blessings be upon him) recited this verse: "Indeed, with hardship comes ease" [Surah al-Sharh: 6].
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9941