I am very sorry to read this news. Please see a lawyer as soon as possible so that you will know what your legal rights are. Don't believe anything he tells you, i.e., promising this or that, because it will change once the process begins.
Please take care of yourself and hugs to you and the children.
Sit quietly, the answers will reveal themselves when you least expect them to. The past is gone, the present is a gift and you need to focus on today, allow the future to reveal itself when it is ready.