Pharrell's infamous Vivienne Westwood hat he wore during the 2014 Grammy Show and 86th Academy Awards has returned to its rightful owner: Arby's.

The musical genius and the fast food chain had a friendly Twitter banter after his hat became an Internet sensation. Arby's famous logo features a hat similar to the one Pharrell wore. Due to the hat's viral success, the producer-rapper-singer placed the hat on eBay and donated the profits to charity.

According to the Associated Press, the hat sold for $44,10, which will be given in full to Pharrell's charity From One Hand to Another. Pharell took to his official Twitter account to thank the buyer, and Arby's responded to his post.

"You're welcome. We're HAPPY to support a great cause & get our hat back," Arby's wrote.

Missed the 86th Academy Awards on Sunday? Check out the full list of winners, along Pharell's performance in the video below.

86th Academy Awards Complete Winners List:

Best Picture

12 Years a Slave

Best Actor in a Leading Role

Matthew McConaughey (Dallas Buyers Club)

Best Actress in a Leading Role

Cate Blanchett (Blue Jasmine)

Best Actor in a Supporting Role

Jared Leto (Dallas Buyers Club)

Best Actress in a Supporting Role

Lupita Nyong'o (12 Years a Slave)

Best Animated Feature

Frozen (Chris Buck, Jennifer Lee, Peter Del Vecho)

Best Cinematography

Gravity (Emmanuel Lubezki)

Best Costume Design

The Great Gatsby (Catherine Martin)

Best Directing

Gravity (Alfonso Cuarón)

Best Documentary Feature

20 Feet from Stardom (Morgan Neville, Gil Friesen, Caitrin Rogers)

Best Documentary Short

The Lady in Number 6: Music Saved My Life (Malcolm Clarke, Nicholas Reed)

Best Film Editing

Gravity (Alfonso Cuarón, Mark Sanger)

Best Foreign Language Film

The Great Beauty (Italy)

Best Makeup and Hairstyling

Dallas Buyers Club (Adruitha Lee, Robin Mathews)

Best Original Score

Gravity (Steven Price)

Best Original Song

Let It Go - Frozen

Best Production Design

The Great Gatsby (Catherine Martin, Beverley Dunn)

Best Animated Short Film

Mr. Hublot (Laurent Witz, Alexandre Espigares)

Best Live Action Short Film

Helium (Anders Walter, Kim Magnusson)

Best Sound Editing

Gravity (Glenn Freemantle)

Best Sound Mixing

Gravity (Skip Lievsay, Niv Adiri, Christopher Benstead, Chris Munro)

Best Visual Effects

Gravity (Tim Webber, Chris Lawrence, Dave Shirk, Neil Corbould)

Best Adapted Screenplay

12 Years a Slave (John Ridley)

Best Original Screenplay

Her (Spike Jonze)