The relevant passsage in the Bible is easy enough to find: it is Ecclesiates 4:12 (see Bible Hub):
And if one prevail against him, two shall withstand him; and a threefold cord is not quickly broken. (King James Bible)
Findng the (possibly) corresponding passage in the Epic of Gilgamesh took a bit more effort.
Apparently, there is a close verbal parallel ...