Justin Bieber PRAYED TO GOD his Toronto Maple Leafs would emerge victorious in Game 7 of their NHL playoff series ... so, when they lost, he REALLY needed comfort from his wife Hailey Baldwin.
Justin and Hailey were sitting in a private VIP box at TD Garden in Boston to watch his Canadian team take on the Boston Bruins.
Before the game, Justin offered up a prayer for his players on IG -- saying, "Dear lord please be with Austin Mathews, Mitch Marner and all of the Toronto Maple Leafs tonight as they play game 7 against the Boston bruins."
JB's prayers went unanswered -- his Maple Leafs got SHELLACKED in a 5-1 blowout.
You can see video of Hailey rubbing Justin's shoulders as she quickly realizes things aren't going his way ...
After the game ... Boston Bruins star David Pastrnak rubbed the win in Bieber's face -- tweeting, "Not today [Justin Bieber] #BostonStrong."
And, get this ... Justin's out of Canadian teams to root for in the NHL playoffs -- the Winnipeg Jets and Calgary Flames were both eliminated, too.