Sleeping/having sexual relationship outside of marriage are forbidden by God. While being married to a woman, a husband is not allowed to cheat, otherwise it's considered adultery. Both, wife and husband must be loyal to each other in marriage. It's a sin to cheat and have sex outside of marriage. It's sinful, wrong and not good.