The Holy Prophet (pbuh) came after all Prophets and Messengers. The order of prophethood that began with Prophet Adam ended with Prophet Mohammad (pbuh). Allah limited the guidance and prophethood of the previous Prophets to a specific area or country. Their guidance and message was not universal. But the guidance of Prophet Mohammad (pbuh) is universal and he refers to the entire world. Prophet Mohammad (pbuh) came as the bearer of glad tidings and the warner for the whole universe and conveyed the Divine message completely and safely for the world’s guidance. He did not leave the need for any more Prophets or Messengers. Hence, the Quran refers to him as Khatim an-Nabiyeen meaning: The Seal of Prophets. In Arabic the word “Khatim” means the seal that we put on envelopes so that no one will mess with it.
https://www.mahnama-sultan-ul-faqr-lahore.com/may-2021-aqeeda-khatm-e-nabuwat