SoftBank Group Corp. terminated an offer to pay up to $3 billion for shares in office-space provider WeWork, depriving co-founder Adam Neumann of a potential windfall of nearly a billion dollars.

Tokyo-based SoftBank said Thursday its move wouldn’t affect operations of the troubled shared-office company. SoftBank said it has committed $5.45 billion in capital to WeWork since October 2019.

Mr....