Jabir said the Prophet was leading the people in the noon prayer in time of danger in a valley with palm trees.* He led a section in two rak'as after which he uttered the salutation; then another section came and he led them in two rak'as after which he uttered the salutation.
*The Arabic is bi-bain nakhl. Mirqat, 2, 244, says this is the name of a place between Mecca and at-Ta’if; but the name of that place is Nakhla. Alternatively it is said to be Batn an-nakhl near Medina.
[Baghawi] transmitted it in Sharh as-sunna.