(Click photos to enlarge)
How to redeem a code on Xbox Series X|S and Xbox One
Press the Xbox button to open the guide, and then select Store.
Press the View button J to open the side menu, and then select Redeem.
Enter the 25-character code, select Next, and then follow the prompts.