My child's Father claimed her on his taxes before I filed and claimed her for 2022. It was his mistake. Mine was rejected. What do I do?

We have a legal custody agreement  stating I claim even years, he claims odd years. He claimed her last year. I did not. He is asking that I amend mine and he gives me the cash he receives for her instead.