The Prophet ﷺ, when he supplicated against locusts, would say, "O Allah, destroy their large ones, kill their small ones, ruin their eggs, cut off their roots, and seize their mouths from our livelihoods and provisions. Indeed, You are the Hearer of supplication."A man said, "Messenger of Allah, how can you pray for the destruction of one of Allah's armies by cutting off its roots?"He replied, "The locust is the sneeze of the whale in the sea."Hashim said, Ziyad said, "Someone who saw the whale sneezing them out told me of it."
حدثنا هارون بن عبد الله الحمال حدثنا هاشم بن القاسم حدثنا زياد بن عبد الله بن علاثة عن موسى بن محمد بن إبراهيم عن أبيه
أن النبي ﷺ كان إذا دعا على الجراد قال اللهم أهلك كباره واقتل صغاره وأفسد بيضه واقطع دابره وخذ بأفواهها عن معايشنا وأرزاقنا إنك سميع الدعاء فقال رجل يا رسول الله كيف تدعو على جند من أجناد الله بقطع دابره قال إن الجراد نثرة الحوت في البحر قال هاشم قال زياد فحدثني من رأى الحوت ينثره
[Its chain of transmission is very daif] Tirmidhi transmitted it, Book of Foods, Chapter on What Has Been Said About Invoking Against Locusts, no. 1823, from the hadith of Hashim, with this wording, and he said it is unfamiliar, and Busiri declared it daif due to the weakness of Musa bin Ibrahim, no. 1438, and see no. 3171.