How to stay motivated while working out?

I just started working out this week and feel pretty good but this always happens where I'll be super into it in the beginning but the motivation fades. In the end I just gain everything back and give up.
How to stay motivated while working out?
Post Opinion