The report in question is mursal, and some Shi‘i scholars have criticized it, describing it as weak in both its chain of transmission and its content. In fact, Shi‘i scholars objected to this hadith even before the Wahhabis did!
و روی أن إسماعیل کانت أغنامه ترعى بشط الفرات ...
Bihar al-Anwar (Beirut edition), vol. 44, p. 244
However, the mere fact that this report exists does not undermine the possibility that the event took place, since similar reports have been transmitted that are sufficiently reliable both in their chains of transmission and on rational grounds.
Since similar objections may be raised against other hadiths, we will examine the matter.
The fact that the Prophet Ismail (peace be upon him) was based primarily in Mecca does not mean that he never left his homeland during his blessed life and mission, whether to convey his message or for other reasons.
The prophets’ knowledge of the unseen does not mean that nothing of the unseen was ever hidden from them. Some matters may have been kept from them for a particular wisdom. For example, although the Prophet Solomon (peace be upon him) could hear the speech of an ant:
الأنفال : 48 و إذ زین لهم الشیطان أعمالهم و قال لا غالب لکم الیوم من الناس و إنی جار لکم فلما تراءت الفئتان نکص على عقبیه و قال إنی بریء منکم إنی أرى ما لا ترون إنی أخاف الله و الله شدید العقاب
“And [remember] when Satan made their deeds seem fair to them and said, ‘No one among the people will overcome you today, and I am your protector.’ But when the two forces came face to face, he turned back and said, ‘I have nothing to do with you. I see what you do not see. I fear God; God is severe in punishment.’”
النمل : 18 حتى إذا أتوا على واد النمل قالت نمله یا أیها النمل ادخلوا مساکنکم لا یحطمنکم سلیمان و جنوده و هم لا یشعرون
“They went on until they came to the valley of the ants. An ant said, ‘O ants, go into your dwellings, lest Solomon and his armies crush you without realizing it!’” (18)
النمل : 19 فتبسم ضاحکا من قولها و قال رب أوزعنی أن أشکر نعمتک التی أنعمت علی و على والدی و أن أعمل صالحا ترضاه و أدخلنی برحمتک فی عبادک الصالحین
Solomon smiled and laughed at her words, and said, “My Lord, inspire me to give thanks for the blessings You have bestowed upon me and my parents, and enable me to do righteous deeds that please You. By Your mercy, admit me among Your righteous servants!” (19)
Yet despite all his power and authority over the clouds, the wind, the birds, the jinn and others, the Prophet Solomon did not know where the hoopoe was when it was absent, and knew nothing of the Queen of Sheba or her sun-worshipping people.
النمل : 20 و تفقد الطیر فقال ما لی لا أرى الهدهد أم کان من الغائبین
“Solomon searched among the birds and said, ‘Why do I not see the hoopoe? Is he among the absent?’”
النمل : 21 لأعذبنه عذابا شدیدا أو لأذبحنه أو لیأتینی بسلطان مبین
“I will surely punish him severely, or slaughter him, unless he brings me a clear explanation for his absence.”
النمل : 22 فمکث غیر بعید فقال أحطت بما لم تحط به و جئتک من سبإ بنبإ یقین
Not long afterwards, the hoopoe arrived and said, “I have learned something that you have not learned. I have brought you certain news from Sheba!”
Thus, the fact that some matters were concealed from the prophets for a particular wisdom does not undermine their prophethood. Moreover, a question is not always asked in order to seek information. It may instead be confirmatory, honorific, intended to draw someone closer, or to establish a connection. A question may also serve to investigate a matter as a test, or to direct the attention of other listeners to the central issue.
Likewise, the sheep’s refusal at that moment does not mean that they would continue to refuse to eat. The matter could be remedied through prayer and other special graces, just as a person in mourning eventually returns to their normal state.