The battle of Khandaq took place in the month of Shawwal of 5th Hijri. This is because when the Jews saw that the polytheists had won the battle of Uhud and the Muslims had been defeated, and they had heard that Abu Sufyan would fight the Muslims again in the Badr desert next year , their courage increased. So the Jewish leaders went to the Quraish of Makkah. They went to Makkah to provoke the Quraish against the Muslims and against the Prophet (peace be upon him) they promised to help the Quraish. Seeing the interest of the Jews, the courage and bravery of the Quraish increased. Following the advice of the Jews, they began to prepare for war. To this end they went to Gatfan and other Arab tribes. They called on them to fight against Muhammad (peace be upon him). They responded to that call.