In a few days a magnificent wedding was celebrated , at which the rejoicings lasted four whole weeks , for all the neighbouring kings had met together to thank the man who had freed the world from their common enemy .