Usul al-Kafi
Book 5: The Book of Belief and Disbelief
Chapter 46
Reward of good deeds
734. 1. Imam
Jafar as-Sadiq (p): If someone comes to know about a good
deed which carries reward and performs it, he will be rewarded even
if the deed remains incomplete.(B5,C46,T1)