The Messenger of Allah ﷺ said, "O Allah, bless the people of Medina in their city. Bless them in their saa and bless them in their mudd. O Allah, Ibrahim was Your servant and Your khalil, and I am Your servant and Your messenger. Ibrahim asked You for the people of Mecca, and I ask You for the people of Medina just as Ibrahim asked You for the people of Mecca, and the like of it with it. Medina is enclosed by angels. At every one of its mountain passes there are two angels guarding it. Neither plague nor the Dajjal shall enter it. Whoever intends harm against it, Allah will melt him away as salt melts in water."
حدثنا عثمان بن عمر حدثنا أسامة يعني ابن زيد حدثنا أبو عبد الله القراظ أنه
قال رسول الله ﷺ اللهم بارك لأهل المدينة في مدينتهم وبارك لهم في صاعهم وبارك لهم في مدهم اللهم إن إبراهيم عبدك وخليلك وإني عبدك ورسولك وإن إبراهيم سألك لأهل مكة وإني أسألك لأهل المدينة كما سألك إبراهيم لأهل مكة ومثله معه إن المدينة مشبكة بالملائكة على كل نقب منها ملكان يحرسانها لا يدخلها الطاعون ولا الدجال من أرادها بسوء أذابه الله كما يذوب الملح في الماء
Its isnad is sahih. It will also come with this isnad in the Musnad of Abu Hurairah at 8355. Muslim narrated it in 1:390 through the route of Ubaydullah bin Musa, from Usamah. See also 1457, 1588, 1573, 1606.