Abu Ubayda reported,

The last words spoken by the Prophet ﷺ were, "Expel the Jews of Hijaz and the people of Najran from the Arabian Peninsula, and know that the worst of people are those who take the graves of their prophets as places of worship."

Azami 9336

Sahih

عن أبي عبيدة قال

آخر ما تكلم به النبي ﷺ: أخرجوا يهود أهل الحجاز، وأهل نجران من جزيرة العرب، واعلموا أن شرار الناس الذين اتخذوا قبور أنبيائهم مساجد.

الأعظمي 9336صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Nearness of his death, his foretelling of it, his passing, and his burial
Section
Last words of advice the Prophet ﷺ gave during his final illness
Numbering
Jami al-Kamil 9336 (2nd edition)
Azami 9336