boyfriend having suicidal thoughts

my boyfriend just told me he's having suicidal thoughts after not having them at all for a couple months. He told me he had them in the past but never acted on them and he said that school is making them come back and I'm just so worried and sad I don't know what to do he keeps telling me to not worry and that he's okay but it's hard to do that what do I do?