Getting sick ruined sleep

A

So my son recently got hit with a nasty virus. He was in the hospital with over 105 fever. The virus lasted about a week and it was miserable every day/night. He’s all better now but will NOT sleep in his crib for naps or at night now. He will only sleep if I’m holding him and the second I put him down he starts screaming crying. Has anyone had a sick child and has gone through this? If so how did you get them back to sleeping in their crib?