From Sahih Muslim (Hadith 3344):
Ibn 'Umar (Allah be pleased with them) reported Allah's Messenger (ﷺ) as saying:He who patiently endures the hardships of it (of this city of Medina), I would be an intercessor or a withness on his behalf on the Day of Resurrection
Reference: Muslim 3344