
Quoting
cbg
Dear (Manager):
This letter constitutes my resignation from ABC Company effective April 8, 2019.
Signed,
(Name)
That's all you need.
If, in conversation, you are unable to politely avoid giving a reason, you say, "I'm pursuing another opportunity". Whether or not to add "with DEF Company" is your choice.