From Sahih Muslim (Hadith 1420):
Ali reported:When it was the day (of the Battle) of Ahzab, the Messenger of Allah (ﷺ) said: May Allah fill their graves and houses with fire, as they detained us and diverted us from the middle prayer, till the sun set
Reference: Muslim 1420