Abu Hurairah reported,

The Messenger of Allah ﷺ said, "My likeness and the likeness of the prophets before me is like a man who built a house and made it beautiful and complete, except for the place of one brick in one of its corners. People began walking around it, marveling at it, and saying, 'If only this brick were put in its place!' I am that brick, and I am the seal of the prophets."

Muslim 5961

Sahih

و حدثنا يحيى بن أيوب وقتيبة وابن حجر قالوا حدثنا إسمعيل يعنون ابن جعفر عن عبد الله بن دينار عن أبي صالح السمان

عن أبي هريرة

أن رسول الله ﷺ قال مثلي ومثل الأنبياء من قبلي كمثل رجل بنى بنيانا فأحسنه وأجمله إلا موضع لبنة من زاوية من زواياه فجعل الناس يطوفون به ويعجبون له ويقولون هلا وضعت هذه اللبنة قال فأنا اللبنة وأنا خاتم النبيين

مسلم 5961صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues
Chapter
Prophet ﷺ being the seal of the prophets
Numbering
Darussalam 5961
Muslim 5961