You can use this template to decline the invitation to submit your paper:
Dear Mr./Ms./Dr. [Editor's name],
Thank you for your invitation to submit my manuscript titled [Insert manuscript title] to your journal. However, I am sorry to inform you that the manuscript has already been accepted for pulication by [Insert name of journal that has accepted].
However, I would definitely look forward to publishing with your journal in the future.