Alan Rickman turned down the role of the Sheriff twice before he was told he could more or less have carte blanche with his interpretation of the character.
Alan Rickman's famous line of "Locksley, I'm going to cut your heart out....with a spoon" was an improvisation. He had found his character's dialogue to be bland and one-dimensional, so was always looking at ways to make it more interesting and amusing. Interestingly, Costner does not break character during this scene despite the improvisation and the inclusion of it resulted in another scene providing explanation.
Christian Slater ad-libbed Will Scarlett's line of "Fuck me, he cleared it!", after Robin and Azeem are catapulted over the castle wall. Director Kevin Reynolds kept it in the movie because it was funny, despite the historical inaccuracy.
Cary Elwes was offered the role of Robin Hood, but turned it down because he thought the plot was too contrived. He did, however, portray the character in the spoof Robin Hood: Men in Tights (1993).