Wathila bin Asqa reported,

The Prophet ﷺ said, "Whoever establishes a good practice will receive its reward as long as it is acted upon during his life and after his death, until it is abandoned. Whoever establishes an evil practice will bear its sin until it is abandoned. Whoever dies stationed at the frontier in the cause of Allah will continue to receive the reward of one stationed at the frontier until he is resurrected on the Day of Judgment."

Azami 1128

Hasan

عن واثلة بن الأسقع

عن النبي ﷺ قال: من سن سنة حسنة، فله أجرها ما عمل به في حياته، وبعد مماته حتى يترك، ومن سن سنة سيئة فعليه إثمها حتى يترك ومن مات مرابطا في سبيل الله جرى له أجر المرابط حتى يبعث يوم القيامة.

الأعظمي 1128حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Knowledge
Chapter
Encouragement to seek knowledge
Section
One who guides to good
Numbering
Jami al-Kamil 1128 (2nd edition)
Azami 1128