Erdogan will also visit Kuwait, the main mediator in the Qatar crisis, during his July 23-24 tour.
Turkey is a key ally of Qatar, which has been diplomatically and economically isolated by its Gulf neighbours over allegations it supports terrorism.
Saudi Arabia, the United Arab Emirates, Egypt and Bahrain last month cut diplomatic ties with Qatar and issued 13 wide- ranging demands to lift the blockade, including the closure of a Turkish military base in the emirate.