夥 is the traditional/literary form of 伙. In modern simplified Chinese, 伙 is standard. You'll mainly encounter 夥 in classical texts, legal documents, or traditional Chinese writing.
history
Originally meant 'a large group' or 'many.' The meaning of 'companion/partner' developed from people gathering in groups to share meals (火 = fire for cooking).