Non-abelian Abel's theorems and quaternionic rotation