Sayyiduna Sahl bin Sa'd (may Allah be pleased with him) narrates: When the Ka'bah was made the qiblah, a person passed by the people of Quba while they were performing prayer. That person said to them: "The Ka'bah has been made the qiblah." So those people, along with their imam, turned their faces towards the Ka'bah.
Hadith Referenceسنن الدارقطني / كتاب الصلاة / 1074