Jesus actually said of married men and women: "So they are no longer two, but one flesh. Therefore what God has joined together, let no one separate.” 

That it was His teaching was made clear by the response of His disciples, "The disciples said to him, “If this is the situation between a husband and wife, it is better not to marry.” " Jesus didn't qualify His commandment about the permanence and indissolubility of marriage.