God answered this prayer. God said yes He would hear the prayer of His people when they repented,when they looked toward the temple. The temple is no longer there but the temple mount is. This is why it is so vitally important to the Jewish people.
Solomon is the one praying in the verse above, but he doesn't only ask for the Jews. He asks God to hear the prayers of any foreigner (gentile) who prays toward the house of God.
God doesn't go back on His word.
After Solomon prayed this the presence of God was so heavy in that place that the priests couldn't enter.
So, I wonder, what if we faced Jerusalem when we prayed? We don't need to to be heard but God honors those who honor His people.
I don't know. It is sure something to think about.