How do I fix my taxes to get the $500 for him on my taxes. It said I don’t get the child earned credit and I want to know why

I need help on how to fix this and make sure his dad didn’t claim him. Because by law he isn’t suppose to claim my son