Prime Minister Narendra Modi will go on an official visit to Qatar on June 4-5 at the invitation of the Emir of Qatar, Sheikh Tamim bin Hamad Al-Thani, it was announced on Friday.