Sayyiduna al-Mughirah bin Shu'bah (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "With everyone a 'qarin' (companion) from among the jinn has been appointed." The people said: "With you as well?" The Prophet (peace and blessings be upon him) said: "With me as well, except that Allah Almighty helped me against him and he submitted, so he commands me only to good."
At-Tabarani recorded it; its chain contains Abu Hammad al-Mufaddal bin Sadaqah, who is da'if (weak).