If they had been thinking of the country they had left, they would have had the opportunity to return to it.
In context
13All these people died in faith, without receiving the things promised; they only saw them and welcomed them from a distance, and acknowledged that they were foreigners and strangers on earth. 14People who speak like that show plainly that they are seeking a homeland of their own. 15If they had been thinking of the country they had left, they would have had the opportunity to return to it. 16Instead, they were longing for a better country — a heavenly one. That is why God is not ashamed to be called their God, for he has prepared a city for them. 17By faith Abraham, when he was tested, offered up Isaac. He who had received the promises was ready to offer his only son,