I gave the pledge of allegiance to Allah's Messenger (ﷺ) for to offer prayers perfectly…

Sahih al-Bukhari Book 9 Hadith 3

Sahih al-Bukhari #524

Times of the Prayers 9:3

Narrated Jarir bin `Abdullah:

I gave the pledge of allegiance to Allah's Messenger (ﷺ) for to offer prayers perfectly, to pay Zakat regularly, and to give good advice to every Muslim.

Chapter: To give the Bai'ah (pledge) for Iqamat-as-Salat [the offering of As-Salat (the prayers).

Grade: Sahih