He told them to switch horses. So if one son gets there first, he will be on his brother's horse and his horse will be last and he will get the fortune.