Chastised for not Fighting

If you do not support him, Allah has already helped him, when the disbelievers drove him out, and he was one of two in the cave. He said to his companion, “Do not grieve; Allah is with us.” Then Allah sent down His tranquillity upon him, strengthened him with unseen forces, and made the word of the disbelievers the lowest, while Allah’s word is supreme.

9:40If ye help him not, still Allah helped him when those who disbelieve drove him forth, the second of two; when they two were in the cave, when he said unto his comrade: Grieve not. Lo! Allah is with us. Then Allah caused His peace of reassurance to descend upon him and supported him with hosts ye cannot see, and made the word of those who disbelieved the nethermost, while Allah's Word it was that became the uppermost. Allah is Mighty, Wise.