Abu Musa reported God’s messenger as saying, “When a man is ill or on a journey, what he was accustomed to do when staying at home and well will be recorded for him.”(This refers to his observance of salat, etc., cf. the traditions of ‘Abdallah b. 'Amr and Anas on p. 326.) Bukhari transmitted it.
Hadith Referenceمشكوة المصابيح / كتاب الجنائز / 1544
Hadith Gradingالألبانی:صَحِيح | زبیر علی زئی:صحيح
Hadith Takhrij´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «رواه البخاري (2996)»