What were Nathan Hale’s last words?

Legend claims that when sentenced to death in 1776 by the British for spying, Nathan Hale proclaimed, “I only regret that I have but one life to lose for my country.”

But British officer Captain Frederick Mackenzie reports in his diaries that Hale said, “It is the duty of every good officer to obey any orders given him by his commander in chief.”