Young Journalists Club"The conflict in Yemen has no military solution, whether from us or from anywhere in the world," Hamdok told the Atlantic Council, a US-based think tank, on Thursday.
He added that the war "has to be resolved through political means," and that his country will seek to "help our brothers and sisters in Yemen and play our role with the rest to help them address this".
Sudan has been one of the main contributors to the so-called Saudi coalition against Yemen, formed in 2015 in a bid to install a pro-Saudi government in Sana'a and crush Yemen's Houthi Ansarllah movement.
According to reports, up to 40,000 Sudanese troops were deployed in the country during the peak of the conflict in 2016-2017.
Late October, however, Sudanese officials said the country had withdrawn thousands of troops from Yemen, with only a "few thousand" remaining.
Speaking on Thursday, Hamdok said "not many" Sudanese forces remain in Yemen.
Hamdok, who is leading the country's transitional government in a power-sharing pact with the military, further stated that he will be "absolutely" able to withdraw the remaining troops from Yemen.