Juventus qualified for the Champions League knockout rounds after finishing top of Group H, despite suffering their second defeat of the group stages on Wednesday night.
The Italian giants deployed a strong starting line-up against the Swiss champions, featuring Cristiano Ronaldo.
However, Young Boys - who finished bottom of the group - took a surprise 2-0 lead midway through the second half after Guillaume Hoarau completed his brace.
Paulo Dybala, on as a second-half substitute, pulled a goal back for the visitors with a superb strike from outside the box.
The Argentine forward then thought he’d equalised with an even better shot from range in the dying seconds - only for the assistant referee to raise his flag after Ronaldo attempted to get the final touch.
Dybala rifled the ball into the top corner of the net on the half-volley with unstoppable power.
It would have been one of the best goals of his career had Ronaldo not intervened.
Watch it here…
Now the five-time Ballon d’Or winner knows how Nani must have felt back in 2010.
Ronaldo was denied arguably the best goal of his career while playing for Portugal against Spain.
After turning Gerard Pique inside out and then brilliantly lifting the ball over Iker Casillas, Nani inexplicably headed the ball into the net while in an offside position.
The referee disallowed the goal and Ronaldo went mental.
Dybala, on the other hand, looked understandably devastated after seeing the flag had been raised - but he seemed more annoyed with the decision (which appeared to be correct) rather than Ronaldo’s cheeky attempt to add yet another goal to his tally.
Following the 2-1 defeat, Ronaldo told reporters that he’s focused on ‘the beautiful part’ of the Champions League.
"Now the beautiful part of the Champions League starts and I'm confident we will be fully ready for it," the 33-year-old was quoted as saying by Goal.com.
"I'm calm because I know the potential of this team and my potential.
"I could have scored a couple of goals easily but this is football, we just have to start to focus on the next game."