Sir David Dalrymple, Lord Hailes, 3rd Baronet of Hailes (28 October 1726 – 29 November 1792) was a Scottish advocate, judge and historian, born in Edinburgh.