It is allowed to raise the hands while saying it, and it is allowed to raise the hands after saying it. All of these are permissible, there is no problem with it, inshaAllah the Exalted, even though what was most common with the Prophet ﷺ was saying it while raising.