Sahih Muslim Book 031, Hadith Number 5874.

Chapter : The merits of Abu Bakr Siddiq (Allah be pleased with him).

Abdullah reported Allah's Messenger (may peace be upon him) as saying: If I were to choose amongst the people of earth someone as my bosom friend, I would have chosen the son of Abu Quhafa as my friends but God has taken your companion as a friend.