Exxon Mobil Corp. is in talks with Qatar over a partnership that could see the Middle Eastern nation owning U.S. gas, people familiar with the matter said.

The potential deal could lead to the state energy giant Qatar Petroleum investing in Exxon’s vast U.S. gas resources, extending from West Texas to North Dakota, according to the people,...