Edgar Atheling returned to Scotland the next year. He had been offered land on the border near Normandy by the French king. Malcolm told him to take it and settle down. He then gave Edgar gold and silver and sent him off to live in France. But Edgar soon returned having been shipwrecked on his journey. This time Malcolm advised him to make peace with king William of England. Edgar did and received a castle as a residence in England. In 1079 William and his son Robert were fighting in Normandy. Malcolm raided into England again being welcomed in Northumberland. But William sent his brother Odo, Bishop of Bayeux north to punish Northumberland and Robert to raid into Scotland. Once more Robert and Malcolm settled their differences and were at peace again. In 1092, during the reign of William Rufus Malcolm raided England yet again. Peace was again renewed with William Rufus. But William failed in one of his promises to Malcolm, so in 1093 the Scots invaded England again. This time Malcolm III died while fighting at Alnwick Castle. His son Edward died there also. Margaret, his queen died of grief after hearing the news of the death of her husband and their son.