If there has been an affair in your marriage it doesn't have to kill the marriage. There is hope. There are some steps you need to take and to take quickly if you're involved in a relationship that is wrong. If you don't need it personally you may need to share it with people because it is a problem of many people around us.
First of all, acknowledge the sin.
David did this in Psalm 51:1-4 when he committed adultery. You stop rationalizing it, stop making excuses, call it what it is. It's not an affair, it is adultery.
GOD's standards are very clear about this and HE's never changed HIS standards. Premarital sex is unacceptable to GOD. It always has been, it always will be. Adultery is unacceptable to GOD. It always has been, it always will be. Homosexuality is unacceptable to GOD. It always has been it always will be. Pornography is unacceptable to GOD. It always has been, it always will be. There's no gray area in these matters. GOD is very clear about what the rules are to win
If you've struggled with any of these areas you need the fellowship and support of people who are trying to do the right thing. Be a part of a church family, find forgiveness, find the power to change and do the things you know are right to do.
Just a thought from the front porch…