Prophet (S.A.W.) said:
“Whoever prays Qiyaam (Taraweeh Prayer) with the imam until he finishes, it will be recorded as if he spent the whole night in prayer.”
(Tirmidhi: 806)