Guy friend wants to sleep with me

I have a guy friend, he’s a co-worker and we work the same shift. We have been friends for a few months, maybe almost a year. A long time ago he admitted he had a crush on me until he found out I was married. I didn’t think much of that because honestly that’s always the case with guys. (I’m not trying to be vain and I certainly don’t think every guy likes me but I tend to unintentionally attract a lot of men.) well I’ve been off work for 3 months due to an injury and him and I talk on occasion but we havnt truly seen eachother for awhile. I actually felt like he was being distant with me and I was fine with that because I had been wanting to focus on my family during this time. Trying to focus on my marriage as working this past year has her. Rough. We had no days off togather and we miss eachother a lot. And then out of the blue yesterday he told me he has been developing feelings and he’s trying to ignore them but he’s unable to and basically wanted to know if I’d be interested in sleeping with him. He’s not single 😳 I asked him why is he with his girl if he’s willing to step out on her. He said he just doesn’t know how else to get rid of the lust he’s feeling and he’s stepped out in the early days, he said he never wants to leave his girl but sometimes his lust feelings just won’t stop. I told him I really couldn’t do that to my relationship or his. And that I understand the struggle, but there’s got to be a healthier way. I told him I adore him and maybe if we had met at some other point in time we would have dated but this is not how life works. I asked if we were still going to be friends and he said yes of course. I’m now treading lightly with him.

I asked my coworker a long time ago if she thought maybe he liked me a little too much and she reassured me that he’s just flirty and he’s not like that.

I deleted the convo because I didn’t want my husband to find it and feel insecure everytime I go to work.

I guess my question is did I do something wrong? I feel guilty. I also feel kinda flattered and the leads to more guilt. I feel like I did the right thing when I told him no, but I just feel like I forgot a step or something.