Is there a chance he was expecting his friend to talk to you and pass that message on?

VERY OFTEN spouses do these sorts of things to take a measurement of your commitment to them.. they tell you they don't love you anymore in the hopes of prompting a positive response to reassure themselves...

HIS friend should be speaking up for you, telling him you still want to save your marriage but that he has to stop cheating... But ya I guess if its his friend the guy is gonna turn his head... a lot of my wife's "friends" just smiled and turned their head away when I tried to talk to them about her affair...

I suspect your H's just testing you...