East Midlands Railway is suspending some services as temperatures are forecast to soar.
Trains between Sheffield and Liverpool will not run today or tomorrow.
Some Nottingham services will also be suspended from midday Thursday.
Passengers are being told to check before travelling and only make essential journeys on Thursday.
Philippa Cresswell, Customer Experience Director at East Midlands Railway, said: "The hot weather means we'll need to make some temporary changes to our services to keep the railway operating safely.
"If you do need to travel and the journey is essential, we'd recommend travelling before midday and checking your journey before setting off.
"We appreciate these changes may inconvenience some customers and we'd like to thank everyone for their patience and understanding while we work to keep people moving safely."

Four Seasons car park to close for refurb works
Suspect arrested after stabbing in shop
Mansfield bin collections delayed
Major fire incident stood down
Police issue Sutton robbery appeal
Hundreds of hours of high-visibility patrols delivered
Fire service declares major incident
Appeal after bicycle stolen from Mansfield address