We must resist wandering thoughts in prayer. Raising our hands reminds us that we need to raise up our minds to God, setting aside all irrelevant thoughts.
"Institutes of the Christian Religion" by John Calvin, translated by Henry Beveridge, Book III, (Ch. 20), 1845.