This hadith has been narrated through another chain of transmitters but with a slight variation of wording.
Sahih Muslim Book 43, Hadith 27
← Previous Hadith
The similitude of mine and that of the Apostles is like that of a person who built a house and he completed it and made it perfect but for the space of a brick. People entered therein and they were surprised at it and said: Had there been a brick (it would have been complete in all respects). Allah's Messenger (ﷺ) said: I am that place where the brick (completing the building is to be placed), and I have come to finalise the chain of Apostles.
Sahih Muslim Book 43, Hadith 26 Next Hadith → When Allah, the Exalted and Glorious, intends to show mercy to an Umma from amongst His servants He calls back His Apostle to his eternal home and makes him a harbinger and recompense in the world to come; and when He intends to cause destruction to an Umma, He punishes it while its Apostle is alive and He destroys it as he (the Apostle) witnesses it and he cools his eyes by destruction as they had belied him and disobeyed his command.
Sahih Muslim Book 43, Hadith 28
Sahih Muslim Book 43, Hadith 26 Next Hadith → When Allah, the Exalted and Glorious, intends to show mercy to an Umma from amongst His servants He calls back His Apostle to his eternal home and makes him a harbinger and recompense in the world to come; and when He intends to cause destruction to an Umma, He punishes it while its Apostle is alive and He destroys it as he (the Apostle) witnesses it and he cools his eyes by destruction as they had belied him and disobeyed his command.
Sahih Muslim Book 43, Hadith 28