The Zulfiqar, Hazrat Ali's famous sword, has a history rooted in both legend and religious significance. According to one account, Zulfiqar was given to Imam Ali by Allah (God) through the angel Gabriel. The Prophet Muhammad (peace be upon him) presented the sword to Ali, declaring it a gift from God.
Therefore, depending on the interpretation, one could say the sword was either divinely bestowed or given to him by Prophet Muhammad.