Tottenham's second-leg fightback was in vain as Benfica progressed to the quarter-finals of the UEFA Europa League with a 2-2 draw in Lisbon.
The hosts looked on course for a comfortable 1-0 win at Estadio da Luz thanks to Ezequiel Garay's thunderous first-half header after winning the first leg 3-1 at White Hart Lane..
Yet, there was a dramatic ending as Nacer Chadli's quickfire double threatened a late Tottenham comeback, but Lima's last-gasp penalty denied the London club victory on the night as Benfica remain on course for a second consecutive Europa League final after losing last year's version 2-1 to Chelsea.
Jorge Jesus' Primeira Liga leaders can now look forward to the quarter-finals after a 5-3 aggregate victory, while Tottenham's gutsy exit may alleviate some of the pressure on head coach Tim Sherwood - who accused Jesus of lacking class following a heated first leg.
The hosts moved into a first-half lead when Garay powered his header past veteran goalkeeper Brad Friedel, and the scores remained the same until half-time.
It looked as though that is how the game would stay, but Chadli levelled the tie with a curling effort on 78 minutes, before adding a second goal shortly after.
Ultimately, however, it would prove too little too late and Lima had the final say from the spot.
Benfica missed a great opportunity to extend their aggregate lead as early as the ninth minute, when Garay nodded the ball into the path of centre-back partner Luisao but he could only head over the crossbar from eight yards out when unmarked.
That miss could have been punished by Roberto Soldado six minutes later, when the Spanish striker controlled the ball at the back post before his half-volley went down into the turf and wide of the target.
It was an open contest and Tottenham spurned another chance to take the lead after 26 minutes, with Chadli heading Gylfi Sigurdsson's corner wide.
Benfica took advantage of the visitors' wasteful finishing in the 34th minute, as Eduardo Salvio ghosted past stand-in captain Aaron Lennon on the right before clipping an inviting cross into the box which Garay finished with a thumping header.
The visitors looked comfortable in possession for the remainder of the opening period, and continued that trend in the second half.
Luisao could have had his third goal of the tie in the 58th minute when he leapt highest to head Miralem Sulejmani's corner wide.
With tie seemingly petering out to a Benfica win, Tottenham turned the game on its head after 78 minutes, as Chadli cut in from the right flank and rifled a right-shot into the far corner.
Just a minute later Chadli scored his second when he span on the spot and hooked his shot in the top right-hand corner.
There was further drama in the closing stages when Suljmani felled substitute Harry Kane in the area, but the referee did not award the penalty.
Benfica were then grateful to goalkeeper Jan Oblak deep into injury time, as first he kept out Sigurdsson's header with a fine point-blank save, before holding Kane's tame header.
The hosts then settled the game as Lima equalised from the spot, after Sandro had fouled the midfielder in the area.
|Coach: Jorge Jesus|
for F. Đuričić 71'
for O. Cardozo 76'
for M. Sulejmani 90+2'
|Walker juggles music, football careers in Sweden|
|Song to face ´brother from another mother´ Fabregas|
|Adriano announces Le Havre deal|
|Pardew braced for Old Trafford test|
|Lescott unfazed by City reunion|
|Tskhadadze appointed Georgia coach|
|United to finish top three - Ferdinand|
|Allardyce: Stamford Bridge stalemate saved my job|
|Southampton need three January signings, says Watson|
|Liverpool can make Champions League, says fanzine editor|
|Walsh: Hull clash crucial for Leicester|
|Toure, Aubameyang and Enyeama make shortlist for African gong|
|Docherty backs Chelsea to win two-horse race|
|Liverpool could benefit from Hyypia influence - Scales|
|Saudi Arabia name Asian Cup squad|
|Forty-year-old Cahill no problem for Postecoglou|
|Wenger criticism baffles Redknapp|
|Leicester must strengthen in window - Walsh|
|United not title contenders - Docherty|
|Koeman: Southampton youngsters will get a chance|
|Dyche empathises with Liverpool striker crisis|
|Cagliari turn to Zola|
|Rooney thanks Van Gaal for Christmas break|
|Cruzeiro offer Paulinho Tottenham exit chance|
|Carlisle´s wife grateful to Burnley|
|Katebe called up to Zambia AFCON squad|
|Cape Verde name AFCON squad|
|Finke names much-changed Cameroon squad|
|Grant omits World Cup troublemakers for AFCON|
|Blackpool striker Ranger goes AWOL|
|Allardyce relishing Mourinho meeting|
|Ashley fails to increase Rangers stake|
|Crystal Palace v Southampton: Koeman calls for focus|
|Warnock targeting striker in January|
|Chelsea v West Ham: Adrian vows visitors will attack|
|Heskey signs short-term deal at Bolton|
|Everton v Stoke City: Martinez eyes strong form|
|Juninho defends David Luiz|
|Burnley v Liverpool: Dyche defends Rodgers ahead of Turf Moor test|
|Arsenal v QPR: Wenger eyes festive momentum|
|Liverpool are growing in confidence, says Rodgers|
|Redknapp: Austin future could depend on survival|
|Martinez wants Everton consistency|
|Barca want Neymar until 2020, says agent|
|Jones undeterred by pressure of Liverpool starting role|
|Allardyce ´knows how to beat managers´ - Carroll|
|Jones playing for a new contract|
|China select Evergrande spine for Asian Cup|
|A-League Preview: Koren tips City to build|
|Khedira keen to fight for Real spot|