Sahih al-Bukhari, Book 67, Hadith 72 (Bukhari 4930)

Narrated Abu Huraira:

The Prophet (ﷺ) said, "A matron should not be given in marriage except after consulting her; and a virgin should not be given in marriage except after her permission." The people asked, "O Allah's Messenger (ﷺ)! How can we know her permission?" He said, "Her silence (indicates her permission).