I recently sold my only house and plan on purchasing a house shortly. My khums year ends at the end of June. There's a big possibility that I might not be able to purchase a house by then. would I have to pay khums on the money I am about to receive on the sale of my house although my intention is to use that money to buy a home for my family?

By default you would have to pay khums on it since it’s not considered an expense of the year if you don’t buy another house before June. However, if paying khums on it puts you in hardship and makes you unable to buy another house then in that case you don’t have to pay khums on it