Ziyarah means visiting. Here are the places to visit in each city, and the spots in the Haram to stop and make dua, with what to say at each.
Not yet checked by a scholar or against the printed books. Each text names its source.
Medina
Greeting the Prophet ﷺ, Abu Bakr and Umar
The Prophet ﷺ is buried in the room of Aisha, at the east side of his mosque. Abu Bakr lies beside him, a little behind, and Umar beside Abu Bakr. You pass all three in one line, through the Bab as-Salam side.
Adab
Enter with the right foot, send salawat, then say the entering dua.
Pray two rak'ahs for the mosque first, in the Rawdah if it is open to you, otherwise anywhere.
Walk slowly, keep your voice low. Allah told the Companions not to raise their voices above his (Quran 49:2).
Stand facing the grave, greet him, then step a little to the right for Abu Bakr and again for Umar.
The guards keep the line moving. Say the short form and make your long dua afterwards, facing the qibla.
As-salāmu ʿalayka yā Rasūla llāh. As-salāmu ʿalayka yā Nabiyya llāh. As-salāmu ʿalayka yā khiyarata llāhi min khalqih. Ashhadu annaka qad ballaghta r-risālah, wa addayta l-amānah, wa naṣaḥta l-ummah, wa jāhadta fi llāhi ḥaqqa jihādih.
Peace be on you, Messenger of Allah. Peace be on you, Prophet of Allah. Peace be on you, the chosen of Allah from His creation. I bear witness that you conveyed the message, fulfilled the trust, counselled the nation and strove for Allah as He deserves.
al-Nawawi, al-Adhkar, on visiting the Prophet's grave ﷺ (shortened)
The main graveyard of Medina, beside the Haram. Here lie Uthman ibn Affan, al-Hasan ibn Ali, al-Abbas, Ibrahim the Prophet's ﷺ son, most of the Mothers of the Believers, and Imam Malik, among thousands of Companions.
Adab
Greet the people of Baqi as the Prophet ﷺ did, then make dua for them and for your own dead by name.
Graves are unmarked. Walk the paths, don't step on graves.
As-salāmu ʿalaykum dāra qawmin mu'minīn, wa atākum mā tūʿadūn, ghadan mu'ajjalūn, wa innā in shā'a llāhu bikum lāḥiqūn. Allāhumma ghfir li-ahli Baqīʿi l-Gharqad.
Peace be on you, home of believing people. What you were promised has come to you; it was delayed until tomorrow. And we, if Allah wills, will join you. O Allah, forgive the people of Baqi al-Gharqad.
Sahih Muslim 974
Practical
Men only. Usually open after Fajr and after Asr for a short time; the gate is on the east side of the Haram plaza.
The first mosque built in Islam, founded by the Prophet ﷺ when he reached Medina on the hijrah. Praying there after purifying at home carries the reward of an umrah.
Adab
Make wudu at the hotel, then go. The reward is for the one who purifies at home.
Pray two rak'ahs in the mosque, with the intention of following the sunnah.
Saturday was his day for Quba: he went on foot and riding.
The mountain north of Medina where the battle of Uhud was fought in 3 AH. Seventy Companions were martyred and are buried at its foot, among them Hamza ibn Abd al-Muttalib, the Prophet's ﷺ uncle and the master of the martyrs.
Adab
Greet the martyrs and make dua for them.
Look across to the archers' hill (Jabal ar-Rumat): the battle turned when the archers left their post. Take the lesson for yourself.
The Prophet ﷺ loved this mountain; love it for his sake.
The stretch of the Kaaba's wall between the Black Stone and the door, about two metres. The Prophet ﷺ pressed his chest, cheek, forearms and palms to it and made dua there (Sunan Abi Dawud 1899, from Amr ibn Shu'ayb; a weak chain the scholars act on).
Adab
Come to it after a tawaf, in wudu. There is no set dua: ask for what you need, in any language.
Open with praise of Allah and salawat on the Prophet ﷺ, then your dua list, and close with salawat (al-Nawawi, al-Adhkar, on the adab of dua).
Hold the wall if you can reach it. If you can't, face it from where you are. Shoving people to get there is harm, and the harm outweighs the sunnah.
In ihram, don't touch the wall or the cover: they are often perfumed.
The low semicircular wall on the north side of the Kaaba. Quraysh rebuilt the Kaaba short of its full foundation, so part of the ground inside the wall belongs to the House: praying there is praying inside it. Tawaf goes outside the wall for the same reason.
Adab
Pray two nafl rak'ahs. In the Shafi'i school prayer in the Haram of Makkah is not disliked at any hour (al-Nawawi, Minhaj al-Talibin, on disliked times); Hanafis still avoid the disliked times.
Make dua under the gold waterspout on the roof edge (the Mizab), a known place of dua. Keep it short when others are waiting.
Lower your gaze and voice: it is tight, and men and women pass close.
Seven rounds of the House before you leave Makkah, so that your last act there is with the House.
Adab
In the Shafi'i school it is required of anyone leaving Makkah on a journey, on the relied-upon view (al-Nawawi, Minhaj al-Talibin). Left out, it carries a dam, a sheep, unless you come back before you are far enough to shorten prayer.
Do it last. Pack and check out first. After it, only what the journey needs: carrying bags, buying food for the road, waiting for the car. Stay on for anything else and you do it again.
In wudu, walking normally: no ihram, no ramal, no idtiba', and no sa'i after.
Then two rak'ahs, Zamzam, and dua at the Multazam if you can reach it.
A woman on her period leaves without it and owes nothing.