[And that to your Lord is the final goal.] It means: the ultimate destination.
﴿وَأَن إِلَى رَبك الْمُنْتَهى﴾ يَعْنِي: الْمصير