Ross County will host Caley Thistle in the fifth round of the Scottish Cup, while Aberdeen will take on Dundee or Queen of the South should they win their replay against Stenhousemuir later this month.
County’s reward for knocking out last season’s Scottish Cup finalists Motherwell was a home tie against Highland rivals Caley Thistle.
John Robertson’s side progressed to the last 16 at the expense of Lowland League leaders East Kilbride with a 4-0 win.
The Dons were held to a 1-1 draw by Stenhousemuir at Pittodrie yesterday in their first match following the winter break.
They will take on Dundee or Queen of the South at home if they defeat Stenny at Ochilview a week on Tuesday.
Ayrshire juniors Auchinleck Talbot, who defeated Ayr United 1-0, will travel to Tynecastle to take on Hearts.
Holders Celtic host St Johnstone, while Rangers will head to Kilmarnock should they get past Cowdenbeath.
The Scottish Cup fifth round draw:
Ross County v Caley Thistle
Hibernian v Raith Rovers
Kilmarnock v Cowdenbeath or Rangers
Hearts v Auchinleck Talbot
St Mirren v Dundee United
East Fife v Partick Thistle
Aberdeen or Stenhousemuir v Dundee or Queen of the South
Celtic v St Johnstone
Ties to be played on the weekend of February 9