spend time in
spend (some amount of time) in (some place)
To be in some building, town, country, etc., for some amount of time. I spent a lot of my childhood in the library, learning about as many things as I could. We're only spending a couple of days in Rome, so we have to be very pragmatic about what we can see. I spent about four years in Tokyo teaching English before eventually moving back to Canada.
spend time in something
to stay in something or some place for a period of time. I spent time in Barbados when I was younger. I am afraid that you will have to spend some time in the hospital until the infection is cleared up.