Sure Yunus

10:46

وَإِمَّا نُرِيَنَّكَ بَعْضَ ٱلَّذِى نَعِدُهُمْ أَوْ نَتَوَفَّيَنَّكَ فَإِلَيْنَا مَرْجِعُهُمْ ثُمَّ ٱللَّهُ شَهِيدٌ عَلَىٰ مَا يَفْعَلُونَ

Ob Wir dich nun einen Teil dessen, was Wir ihnen androhen, sehen lassen oder dich (vorher) abberufen, zu Uns wird (auf jeden Fall) ihre Rückkehr sein. Hierauf ist Allah Zeuge über das, was sie tun.

Tafsir 10:46

Regardless of whether Allah shows the Messenger (peace be upon him)some of the punishment He promises them before his death, or He makes him die before this, they will return to Allah on the Day of Judgement. Moreover, Allah is a witness to what they used to do, none of it being hidden from Him, and they will be repaid for their actions.