Jami` at-Tirmidhi, Book 49, Hadith 324 (Tirmidhi 4021)

Narrated Abu Hurairah:

that the Messenger of Allah (ﷺ) said: "No one is patient with the difficulties and hardships of Al-Madinah, except that I am an intercessor, or a witness for him on the Day of Judgement."