Sayyiduna Qays bin al-Nu'man al-Sakuni (may Allah be pleased with him) narrates: The Prophet (peace and blessings be upon him) set out, and Sayyiduna Abu Bakr (may Allah be pleased with him) was also with him; they were going while hiding from Quraysh. They passed by a shepherd. The Prophet (peace and blessings be upon him) said: "Is there any goat that has been covered by a male?" He replied: "No! There is a goat here which cannot walk because of weakness." The Prophet (peace and blessings be upon him) said: "Bring that very one to me!" He brought that goat to him. The Prophet (peace and blessings be upon him) passed his hand over its udder and supplicated for blessing. Then he milked it and gave that milk to Sayyiduna Abu Bakr (may Allah be pleased with him) to drink; then he milked it and gave the shepherd to drink; then he milked it and drank himself. The shepherd said to him: "By Allah! I have never seen anyone like you. Who are you?" The Prophet (peace and blessings be upon him) said: "If I tell you, will you keep it hidden?" He said: "Yes!" The Prophet (peace and blessings be upon him) said: "Muhammad (peace and blessings be upon him), who is the Messenger of Allah." He said: "Are you the one about whom Quraysh say that he is irreligious?" The Prophet (peace and blessings be upon him) said: "That is what they say." He said: "Then I bear witness that you are truly the Messenger of Allah, for what you have done can only be done by a Messenger." Then he asked the Prophet (peace and blessings be upon him): "Shall I come with you?" The Prophet (peace and blessings be upon him) said: "Not now. When you hear that we have prevailed, then come to us." The narrator says: So that man came to the Prophet (peace and blessings be upon him) after the Prophet (peace and blessings be upon him) had prevailed in Madinah.
Al-Tabarani recorded it, and its narrators are the narrators of the Sahih.