Babar's side were defeated in the first meeting with Ireland last week but responded with two convincing chases to secure a 2-1 triumph.
Ireland captain Lorcan Tucker's 73 helped his side to set a target of 179 in the winner-takes-all-decider, but Pakistan had little trouble in easing to a six-wicket victory with 18 balls to spare.
Rizwan, who managed an unbeaten 75 in the second meeting, crafted a well-made 56, while Babar carried Pakistan to within touching distance after his 42-ball 75.
Big-hitter Azam Khan blasted 18 off just six deliveries to see the visitors over the line, though Afridi was quick to credit the work of the two experienced Pakistan campaigners.
"For us, before the World Cup, it's important to have these games to ready ourselves and there are a few areas to improve," said Afridi, who impressed with 3-14 in the first innings.
"They're both world-class players [Babar and Rizwan]; they know how to play their role and they have done really well on this pitch."
Babar bludgeoned four of his five sixes off Ben White's bowling in the 14th over, while sharing 139 runs with the in-form Rizwan for the second wicket.
"We had good communication in the middle because we have played a lot of cricket together; we were trying to play on our strengths and the aim was to match with the run rate," Babar added.
"Lots of positives for us to take and we were able to execute our plans.
"We have a big tournament coming up and this is good practice; we are now looking forward to the England series."
Mark Adair was the only Ireland bowler to impress with his economical 3-28, though Tucker was still satisfied with his side's efforts.
"It was brilliant and a great privilege to captain," Tucker said at the post-match presentation. "It would have been nice to start with a win.
"We set up a platform nicely but unfortunately, we couldn't finish well. We gave everyone a go with the ball. Credit to the lads, they bowled well in tough conditions.
"Maybe it was a bit disappointing with the result but we had positives from the series."
The Amazon Warriors won the toss and opted to field first. The decision went in their favour when they restricted the Knight Riders to 45-2 at the end of the PowerPlay. However, despite taking regular wickets the Knight Riders had several useful cameos throughout their innings to post a challenging 173 to win.
The Amazon Warriors timed their chase perfectly in reply and had an excellent partnership between Ayub and Hope to thank as the two batters scored half centuries to lay the foundation for the Amazon Warriors power hitters to seal the victory at the death.
In the first innings, the Knight Riders got off to a bad start losing Mark Deyal and Nicholas Pooran in the PowerPlay, the latter falling to a tremendous one-handed catch from wicket keeper Azam Khan.
When Martin Guptil skied one off the bowling of Imran Tahir to leave the Knight Riders on 57-3, the innings needed rebuilding.
Akeal Hosein and Lorcan Tucker stepped up to task the and put the Knight Riders back in the game before Tucker was run out for 38 off 25 balls.
Andre Russell kept the momentum up by hitting a couple of Republic Bank maximums before he departed for a quick-fire 14. His dismissal brought Kieron Pollard to the wicket and the captain responded with a brutal 25 from 12 balls, however, like those before him he failed to kick on.
Ultimately the innings was underpinned by Akeal Hosein. His unbeaten 44 helping to guide the Knight Riders to a competitive score of 172-8.
Much like the Knight Riders, the Amazon Warriors were to get their innings off to an inauspicious start. Chandrapaul Hemraj falling inside the first two overs for 10.
However, Ayub and Hope went on to lay the foundation for the Amazon Warriors chase with a brilliantly constructed partnership of 93 from 67 balls.
Despite Ayub (62) and Hope (51) eventually falling at the back end of the innings. Azam Khan and Shimron Hetmyer hit several Republic Bank maximums to seal the win in style.
The victory means the Amazon Warriors return to the top of the 2023 Republic Bank Caribbean Premier League (CPL) table.
Scores: Guyana Amazon Warriors 175-4 (Ayub 62, Hope 51; Russell 2-29, Khan 2-30) beat Trinbago Knight Riders 172-8 (Hosein 44*, Tucker 38; Smith 3-31, Paul 1-17) by six wickets
The home team won the toss and chose to field but it was their former player Colin Munro who was the star of the Saint Lucia Kings innings, scoring an unbeaten 72 runs to take the side to 167-3 after 20 overs.
The Knight Riders’ chase was headlined by a superb half century from Mark Deyal, alongside support from wicket-keeper Lorcan Tucker and Andre Russell, to take the side to a seven-wicket victory in their final game this season in front of their home crowd.
Saint Lucia Kings lost powerful opener Johnson Charles in the PowerPlay, as fast bowler Jayden Seales celebrated with a wicket on his birthday, but the Kings would rebuild as Colin Munro and Roston Chase patiently scored runs in their 76-run partnership, which came off 58 balls.
Chase was dismissed off a Waqar Salamkheil delivery and that was followed shortly afterwards with the big wicket of captain Sikandar Raza, who fell to Sunil Narine. A late cameo from Sean Williams, who smashed 34 runs off 17 balls would see the Saint Lucia Kings score 58 runs in the last five overs to finish on 167-3.
Trinbago Knight Riders had an early scare as opener Martin Guptill was given out LBW from just the third ball of the innings but the decision was overturned on review.
Guptill eventually lost his wicket in the fourth over, and when Nicholas Pooran, leading run scorer for the franchise this season, lost his wicket in the final ball of the Powerplay to an Alzarri Joseph delivery, the Knight Riders looked in trouble at 45-2.
However, opener Mark Deyal would compose a brilliant half century, reaching 57 before being caught on the boundary by Peter Hatzoglou. Lorcan Tucker would provide invaluable support with 38 runs, before a flurry of boundaries from Andre Russell would ensure the Trinbago Knight Riders would win.
CPL action now moves on to the final leg in Guyana, with the Guyana Amazon Warriors taking on the Jamaica Tallawahs on Wednesday evening.
Scores: Trinbago Knight Riders 169-3 (Deyal 57, Tucker 38; Joseph 2-42, Chase 1-25) beat Saint Lucia Kings 167-3 (Munro 72*, Williams 34*; Seales 1-23, Salamkheil 1-23) by 7 wickets