(17) باب الدُّعَاءِ فِي الصَّلاَةِ
Narrated `Abdullah:
We used to say in the prayer: 'AsSalam be on Allah, As-Salam be on so-and so.' So one day the Prophet said to us, "Allah Himself is As-Salam; when anyone of you sits during his prayer, he should say: 'at-tah, iyyatu-li l-lahi,' up to 'As-Salihin,' (All the compliments are for Allah ...righteous people) for when he recites this, then he says his Salam to all the righteous people present in the heavens and on the earth. Then he should say, 'I testify that none has the right to be worshipped except Allah, and that Muhammad is His slave and His Apostle,' and then he can select whatever he likes to celebrate (Allah's) Praises."
Reference: Sahih al-Bukhari 6328
In-book reference: Book 80, Hadith 25
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 75, Hadith 340