The England and Wales Cricket Board will host the World Cup from May 30 to July 14.
Rahmat Shah and Ihsanullah Janat scored fifties for the war-torn country as they chased down 147 for victory on day four in Dehradun, India.
Sri Lanka, after their fourth 5-0 series defeat in less than two years, appeared to be in disarray.
South Africa won by 41 runs according to the Duckworth/Lewis/Stern method when no further play was possible. The hosts were on 135 for two after 28 overs in reply to Sri Lanka’s 225 all out.
The team arrived at Dhaka airport late Saturday, according to Bangladesh Cricket Board spokesman Rabeed Imam.
At least 49 people died in attacks on two mosques in the city of Christchurch during Friday prayers.
The court said Sreesanth's long-running case had been badly handled and gave the BCCI three months to reconsider his punishment.
Bangladeshi players and team staff arrived at the city's Masjid al Noor for Friday prayers as a shooting unfolded and were warned not to go inside.
Shami, who is expected to lead India's pace attack in the upcoming cricket World Cup in England and Wales, has been locked in a protracted legal battle with Hasin Jahan since March 2018.
Sri Lanka play the first T20 against the hosts on Tuesday in Cape Town, but Hathurusingha will return home after the fifth and final ODI on Saturday, the Sri Lankan board said.
Despite missing banned batsmen Steve Smith and David Warner, Australia bounced back from a 0-2 deficit to clinch the series with a comfortable 35-run win in the final ODI in New Delhi on Wednesday.
England and Australia played what is now considered to be the first men's cricket Test match at Melbourne in 1877.
Khawaja's 100 off 106 balls guided the tourists to 272 for nine and their bowlers combined to dismiss India for 237 at Delhi's Feroz Shah Kotla ground.
Batting at number nine, Udana hit 78 in a Sri Lankan total of 189. But it was not nearly enough as South Africa cruised to a six-wicket win and a 4-0 lead in the series with 17.1 overs to spare.
The in-form Khawaja made 100 off 106 deliveries as Australia put up a competitive total after electing to bat first at Delhi's Feroz Shah Kotla ground.