Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said: "Indeed, Allah Almighty looked into the hearts of the servants and chose Muhammad (peace and blessings be upon him), so He sent him with His message and selected him by His knowledge. Then He looked into the hearts of the people and chose his Companions, and made them the ministers of His Prophet (peace and blessings be upon him) and the helpers of His religion. So whatever the believers deem good is good with Allah, and whatever the believers deem bad is bad with Allah."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 8551