Macquarie has withdrawn from bidding for a stake in Kuwait's oil pipeline network worth up to $7 billion, two sources familiar with the matter said, becoming one of the first known investors to pull out of a Gulf deal due to the Iran war.