Riyad as-SalihinChapter 11Hadith 613
Full Sharh — Riyad as-Salihin 613
وعن فضالة بن عبيد رضي الله عنه أن رسول الله صلى الله عليه وسلم قال: "كل ميت يختم على عمله إلا المرابط في سبيل الله فإنه ينمى له عمله إلى يوم القيامة، ويؤمن فتنة القبر” ((رواه أبو داود والترمذي وقال: حديث حسن صحيح)).
English Translation
Fadalah bin 'Ubaid (May Allah be pleased with him) reported:: The Messenger of Allah (ﷺ) said, "The actions of every dead person come to a halt with his death except the one who is on the frontier in Allah's way (i.e., observing Ribat). This latter's deeds will be made to go on increasing for him till the Day of Resurrection, and he will be secure from the trials in the grave.".
Source
Riyad as-Salihin(رياض الصالحين)
The Book of Jihad
Hadith Number
613