Your fridge's manual will tell you, but as a guide a few hours if it was transported upright. If it was lying down, wait longer, often half a day to a day.
That gives the oil in the compressor time to settle back. If you switch it on too soon, the compressor can be damaged. For the first day, it is best to have a cool bag or cool box ready for your fresh shopping.
