The Terps held the Huskies to 32.3 percent shooting.
The Terps faced 10 tournament-bound teams in the regular season.
Maryland will face No. 7-seed UConn in its first-round game Saturday.
Mike Smith scored 18 points and added 15 assists for the Wolverines.
The Terps trailed the Spartans by 12 after 10 minutes.
The Terps made three field goals in the game's final 10 minutes.
Seth Lundy scored 31 points to lead the Nittany Lions to victory.
The Terps gave the ball away 15 times in Wednesday's loss to the Wildcats.
The loss snaps the Terps' five-game winning streak.
The Terps went on an 11-0 run in the game's first four minutes.