Remember that whatever happens, it has a divine reason. It happens with the will of Allah. Do your best with honesty and leave the rest to Allah. He knows what is better for us than we do. So if it is better for you than you will get it otherwise not. Simple. Whatever be the case , remember that Allah knows best.