The Prophet (peace and blessings be upon him) said: "Whoever catches one rak'ah of a prayer has caught that prayer."