סוֹף דָּבָר הַכֹּל נִשְׁמָע אֶת הָאֱלֹהִים יְרָא וְאֶת מִצְוֹתָיו שְׁמוֹר כִּי זֶה כָּל הָאָדָם
The end of the matter, everything having been heard, fear God and keep His commandments, for this is the entire man.
Rashi:
and keep His commandments, for this is the entire man: Because, for this matter, the entire man was created.