On behalf of the Parti Warisan Sabah-led government, he congratulated Wong on her resounding win in the Sandakan by-election .
"Had the voter turnout been higher, I am confident her majority would have been even greater," he said.
"I would like to take this opportunity to thank all the voters who cast their vote of confidence in Vivian," Shafie said.
He said the win proved that Sandakan voters have once again shown their undivided support for the Warisan-led government.
"This victory is a victory of the people as well as an endorsement of the Warisan-led government," he said.
The Warisan president said the win was also a very clear indication that Umno no longer had any effect on Muslim voters who came out very strongly in support of the DAP candidate.
"I expect Vivian to continue her father’s legacy. The late Stephen Wong was a dedicated MP, and I am confident Vivian will be able to follow in his footsteps," Shafie said.
He added that the government would continue to deliver on its promises.
He said Sandakan would definitely see better days ahead, especially with the work on the airport extension project that was expected to start any day now, as well as the decision to turn POIC Sawit into a furniture hub.
"This will augur well for tourism and could create thousands of job opportunities," he said.
Shafie vowed to guide Wong in her responsibilities as a young politician.
"I will be back to ensure that development projects take off in order to revive the economy of this once timber-rich town," he said.
"Once again, I thank the voters as well as all leaders and members of Parti Warisan Sabah, DAP, PKR, Upko and Amanah who campaigned hard to ensure that Sandakan remains in DAP hands," he said.