Conan O’Brien said farewell to “The Tonight Show” on NBC on Friday night, with a special send-off by comedian Will Ferrell.

Ferrell sang “Free Bird,” while his pregnant wife, Viveca Paulin, danced around, both in hippie-like attire.Â Beck, Billy Gibbons of ZZ Top, Max Weinberg, Ben Harper, and O’Brien alsoÂ added to the musical performance.Â Â Ferrell also brought out the cowbell, which was a shout out to an old “Saturday Night Live” skit.Â (Watch a video of the performance below.)

Also on hand for O’Brien’s last episode of “The Tonight Show” was actor Tom Hanks, musician Neil Young, and a special appearance by “The Office” star Steve Carrell, who gave O’Brien a humorous “exit” interview.

NBC reportedly gave O’Brien more than $40 million, after they gave “The Tonight Show” back to Jay Leno.Â Leno’s primetime show, “The Jay Leno Show,” was cancelled dueÂ to low ratings.Â O’Brien will be free to appear on another network — Fox is a rumored possibility — in the fall.