Sahih al-Bukhari, Book 61, Hadith 141 (Bukhari 3482)

Narrated Anas:

That the Meccan people requested Allah's Messenger (ﷺ) to show them a miracle, and so he showed them the splitting of the moon.