It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) called on the people of a tribe to go out for jihad, but they were sluggish, so Allah revealed this verse: "If you do not go forth, He will punish you with a painful punishment" [Surah al-Tawbah: 39]. And he said: "The form of their punishment was that rain was withheld from them."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 17943