When the Holy Prophet (S) became two years old, one night, Halima’s two sons returned to her gloomy and sorrowful and said: “Mother, today a wolf took away our two sheep.” Halima replied: “God will give more in their lieu.” The Holy Prophet (S) said: “Don’t worry, by God’s will, tomorrow, I will get both the sheep back from the wolf.” Halima’s elder son, Zamrah said: “Brother, strange indeed is what you are saying.
The wolf carried the sheep away yesterday and you say you will get them back tomorrow?” The Holy Prophet (S) replied: “God’s Grace makes everything easy.” Next morning Zamrah seated the Holy Prophet (S) on his shoulder and carried him to the point in the forest from where the wolf had carried away their sheep. The Holy Prophet (S) got down and fell in prostration on the ground and prayed: “My Lord and Master! You know my obligation to Halima.
A wolf has encroached upon her sheep. I beseech of You to order him to return those sheep.” Instantly the wolf brought back the two sheep. What had happened actually was that when the wolf was taking away the sheep an invisible caller called upon him: “O wolf, fear the punishment of God. Protect these two sheep until you return them to Muhammad, the best of the Messengers.” Then that wolf fell down at the feet of the Prophet and, by God’s command, spoke up: “O chief of prophets, forgive me.
Reference:Hayat Al-Qulub Vol. 2