Oscars sulk when moved and big fish sulk more than baby fish. Sometimes they are fine after a few days, other times they sulk for weeks.
Check the water quality for ammonia, nitrite, nitrate, pH and temperature.
Put some substrate in the tank. You don't need much but you need to cover the base so the fish can't see its reflection.
Put some floating plants in the tank or turn the light down or off so it's not as bright.
Give the fish a chance to settle in.