It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) did not pray in the House of Allah, but he did stand facing its various corners.
Hadith Referenceمسند احمد / ومن مسند بني هاشم / 3396
Hadith Gradingحکم دارالسلام:حديث صحيح، وهذا إسناد ضعيف لضعف ليث