Alexander Graham Bell said this quote

When one door closes another door opens; but we so often look so long and so regretfully upon the closed door, that we do not see the ones which open for us.