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

Sahih al-Bukhari Book 54 Hadith 4

Sahih al-Bukhari #2715

Conditions 54:4

Narrated Jabir bin `Abdullah:

I gave the pledge of allegiance to Allah's Messenger (ﷺ) for offering the prayers perfectly paying the Zakat and giving good advice to every Muslim.

Chapter: The conditions permissible on embracing Islam, and in contracts and transactions

Grade: Sahih