What to use to secure loose magnets

My motor got water logged and the magnets are moving… what can I use to secure them ?? Im in a small town but we have a home depot/Canadian Tire/ Rona… Thanx

Any 2 part epoxy should work, the longer the cure time the better it will adhere (I would say a minumum of 30 min). You can also fill the gaps between each magnet as well and it will help it from happening in the future

Thanx man for the tip

Loctite 480

Im going to try this