Tomkins, who played in England's Four Nations Series final defeat to Australia at Elland Road, has been granted permission to temporarily cross codes for the encounter.
Barbarians commercial director Mike Burton said: "We are delighted that Sam, with the support of the coaches and management at Wigan, has accepted this opportunity to play in such a high-profile union match.
"The Barbarian club has a tradition of thinking outside the circle when inviting players with league backgrounds, and usually to everyone's benefit.
"In recent years the likes of Mat Rogers, Lote Tuqiri, Wendell Sailor and, a few months ago, Willie Mason, have all made a mark when playing for us on the big stage. We are confident that Sam will be equal to the challenge this week."
The Barbarians, who will be coached by Graham Henry and Steve Hansen, have also added World Cup-winning winger Richard Kahui and Fijians Seru Rabeni and Nemia Kenatale to their squad for the encounter.
However, Wales fly-half Stephen Jones has been withdrawn from the squad as he is required by the Scarlets for their match against the Dragons on Friday.
Gilbert has released a new line of rugby cleats. The Gilbert Virtuo 8S is part of the exciting new product. Check it out.
The Barbarians are one of the top invitational rugby sides with a long history and classic rugby jersey.
The Nike Tiempo is a solid rugby cleat and one of few styles still made from full-grain natural leather.
The Lions get ready for their matches with this green training jersey. It's what the players wear. Get in the Gear!
A cool looking all black rugby cleat with the high performance adidas is known for. Get in the Gear!
Wear the crest of the British and Irish Lions on your t-shirt. A great look for the summer.
$29.99
The Lions are ready to get their Australia tour underway. They arrive in Perth on Monday.
The New Zealand All Blacks training jersey for 2013/14. Get in the Gear!
The USA Rugby Pro Alternate rugby jersey is perfect for any fan of the Eagles. Get yours to wear during the summer Test matches.
The NEW All Blacks 2013/14 jersey has arrived at World Rugby Shop. Dare to wear the colors of the All Blacks.