Malinga accounted for the wickets of Tamim Iqbal (0) and Soumya Sarkar (15) in his first spell and dismissed Mustafizur Rahman (18) on the last delivery of his ODI career.
Malinga finished as the 3rd highest wicket-taker in ODI cricket for Sri Lanka with 338 wickets in 220 innings with only Muttiah Muralitharan (523) and Chaminda Vaas (399) above him on the list.
Between 2006 and 2013, no other bowler took more wickets than Malinga's 267, this despite him missing 15 months of action in 2008-09 owing to knee troubles.
"I feel it's the right time for me to retire from ODIs. I have been playing for the last 15 years for Sri Lanka and this is the right time to move on. My time is over and I have to go. Winning is very important for me; We are a young team," Malinga said in the post-match presentation.
"I tried my best throughout my career. Some of the young bowlers in the country have good ability, so they need to try and produce match-winning spells. You have to be a match-winner for your team, that's my advice."
Malinga also finished as the team's highest wicket-taker during the recently concluded World Cup 2019 where he took 13 scalps in 7 innings. Malinga is also the only bowler to have taken 2 World Cup hat-tricks (2007 vs South Africa, 2011 vs Kenya). He had already retired from Test in 2011.
Since his 2004 debut against the United Arab Emirates, Malinga has played 225 ODIs and his unusual slingy action and an ability to bowl yorkers have made him a formidable bowler in limited-overs cricket.
Malinga's 56 wickets from 29 matches put him third, behind Australian Glenn McGrath (71) and fellow Sri Lankan Muttiah Muralitharan (68), in the list of most successful bowlers in the history of the World Cup.
The right-arm paceman, a sought-after player in Twenty20 leagues, has also played 30 tests though he quit the long format in 2011 after battling a nagging knee injury.