On website, hover over MyDisneyExperience tab on top right. There will be a My Magicbands and Cards option. At the very bottom, there will be a blue Link button. I can't remember how to do it on the app.
if you go to the menu (tap the button with the three horizontal bars) you’ll see at the bottom “link to account”
If you click there you can select “link magic band”