Jami` at-Tirmidhi, Book 48, Hadith 185 (Tirmidhi 3638)

Saffiyah narrated:

“The Messenger of Allah (ﷺ) entered upon me and before me were four thousand date pits, I was making Tasbih with them. He said: ‘You have made Tasbih with these? Should I not teach you that which is more than what you have made Tasbih with?’ So I said: ‘Indeed, teach me.’ So he said: ‘Say: glory is to Allah according to the number of His creation (Subḥān Allāhi `adada khalqihi).’”