Right. For something that has become so linchpin critical to both fundamentalist Christianity and fundamentalist Islam, the religious texts have remarkably little to say. Muhammad never forbade it. And, Jesus never directly addressed it at all.
In fact, scholarship tells us The Faithful Centurian's servant was actually a lover or male concubine – by the language used in the original texts, which people of the time would have understood to indicate a same-sex relationship. Not only did Jesus not even mention the same-sex nature of the relationship, He praised the centurian's faithfulness. Moreover, that centurian, despite being a gentile, was known to the people in Jesus' audience as a faithful practitioner of the Jewish religion – an audience who both knew the centurian and knew the word the centurian spoke of his servant meant a same-sex lover or concubine. No one in that scenario is recorded to have had any issue at all with that.