The match we had with New Zealand vs Pakistan in the 2023 World Cup I saw match, New Zealand set a target of 400 runs to Pakistan. Unfortunately New Zealand could not win that match. Pakistan won the match due to rain due to rain. After Pakistan won that match, the New Zealand captain said that Pakistan was the favorite team and lucky.
In that match, Pakistan knew it could rain so they played aggressively and won due to luck, afaik just before curtains were put over for rain, Ish Sodhi's over where he gave 20+ runs put match in Pakistan's side, but still were Pakistan to chase full 400 score, they'd probably lost the game.