Allah says in Quran 👇
وَمَا مُحَمَّدٌ إِلَّا رَسُولٌ قَدْ خَلَتْ مِن قَبْلِهِ ٱلرُّسُلُۚ أَفَإِي۟ن مَّاتَ أَوْ قُتِلَ ٱنقَلَبْتُمْ عَلَىٰٓ أَعْقَٰبِكُمْۚ وَمَن يَنقَلِبْ عَلَىٰ عَقِبَيْهِ فَلَن يَضُرَّ ٱللَّهَ شَيْـًٔاۗ وَسَيَجْزِى ٱللَّهُ ٱلشَّٰكِرِينَ
Muhammad is not but a messenger. [Other] messengers have passed on before him. So if he was to die or be killed, would you turn back on your heels [to unbelief]? And he who turns back on his heels will never harm Allah at all; but Allah will reward the grateful.
إِنَّكَ مَيِّتٌ وَإِنَّهُم مَّيِّتُونَ
Indeed, you are to die, and indeed, they are to die.
What hz Abu Bakr said 👇
Hadith Narrated `Aisha:
Abu Bakr came riding his horse from his dwelling place in As-Sunh. He got down from it, entered the Mosque and did not speak with anybody till he came to me and went direct to the Prophet, who was covered with a marked blanket.
Abu Bakr uncovered his face. He knelt down and kissed him and then started weeping and said, “My father and my mother be sacrificed for you, O Allah’s Prophet! Allah will not combine two deaths on you. You have died the death which was written for you.” Narrated Abu Salama from Ibn `Abbas : Abu Bakr came out and `Umar , was addressing the people, and Abu Bakr told him to sit down but `Umar refused. Abu Bakr again told him to sit down but `Umar again refused.
Then Abu Bakr recited the Tashah-hud (i.e. none has the right to be worshipped but Allah and Muhammad is Allah’s Messenger (ﷺ)) and the people attended to Abu Bakr and left `Umar. Abu Bakr said, “Amma ba’du, whoever amongst you worshipped Muhammad, then Muhammad is dead, but whoever worshipped Allah, Allah is alive and will never die.
Allah said: ‘Muhammad is no more than an Apostle and indeed (many) Apostles have passed away before him ..(up to the) grateful.’ ” (3:144) (The narrator added, “By Allah, it was as if the people never knew that Allah had revealed this verse before till Abu Bakr recited it and then whoever heard it, started reciting it.”)
Sahih al-Bukhari 1241, 1242
In-book : Book 23, Hadith 5