Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates from Sayyiduna Abu Talhah (may Allah be pleased with him), who said: I was riding behind the Prophet (peace and blessings be upon him); if I were to say that my knee was touching his (peace and blessings be upon him) knee, it would not be wrong. He (peace and blessings be upon him) held back from (attacking) them until it was the time just before dawn, and the owners of livestock had gone to their animals and the owners of crops to their fields; then he (peace and blessings be upon him) launched a sudden attack on them and said: "Indeed, when We descend upon the courtyard of a people, evil is the morning of those who were warned" [Surah al-Saffat: 177].
Hadith Referenceالمعجم الكبير للطبراني / باب الزاي / 4688