If he almost cheated and did not then you are going to have to find it in your heart to forgive him, he was honest about it and you are going to have to work on trusting him again. If you decide to stay with him then you are going to have to be able to forgive the past and look towards the future. Support him in his endeavor to find his religion again, this could actually be a blessing in disguise he can come closer to his faith and make your relationship stronger. If you have questions about what actually happened then ask them, get the answers you need to move on from this.
i just feel terrible about it all, and he told me only a couple of weeks before he comes back home. why would he tell me about this thing that happened in October, just this week? I told him i would forget about it and put it in our past but I still come up with questions every now and then and I cannot come out and say it because we made an agreement to put it in our past. what should I do?