The Jews heard that Nicanor was attacking and that the foreigners in their country were giving him their support. So they threw dirt on themselves and prayed to their God, who had chosen their nation as his possession forever and had never failed to help them in time of need. 1
References for 2 Maccabees 14:15
14.15-25 1 Macc 7.27, 28.