Bukair bin Abdullah narrates from Qasim that a man asked Sayyiduna Ibn Abbas (may Allah be pleased with him) about a muhrim (person in the state of ihram) who hunts locusts. Ibn Abbas (may Allah be pleased with him) said that he should give a handful of grain as charity. Ibn Abbas (may Allah be pleased with him) also said that he should take a handful of locusts, but this is an opinion (i.e., there is no Shari' evidence for it).
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 898