Dalil

Quran Ali 'Imran 3:158

وَلَئِن مُّتُّمۡ أَوۡ قُتِلۡتُمۡ لَإِلَى ٱللَّهِ تُحۡشَرُونَ

Translation

And whether you die or are killed, unto Allāh you will be gathered.