The Messenger of Allah ﷺ said: “A prophet among the prophets went out on a military expedition and said to his people: ‘Let no man follow me who has contracted marriage with a woman and wishes to consummate the marriage with her but has not yet done so; nor anyone who has built houses but has not yet raised their roofs; nor anyone who has bought sheep or pregnant she-camels and is waiting for their offspring.’"
“So he went on the expedition, and when he drew near to the town at the time of the Asr prayer, or close to that, he said to the sun: ‘You are under command, and I am under command. O Allah, hold it back for us,’ so it was held back until Allah granted him victory. Then he gathered the spoils, and then it came – meaning the fire – to consume it, but it did not consume it. He said: ‘There is misappropriation among you; let one man from every tribe pledge allegiance to me.’ Then the hand of one man stuck to his hand, so he said: ‘Among you is the misappropriation; let your tribe pledge allegiance to me.’ Then the hands of two or three men stuck to his hand, and he said: ‘Among you is the misappropriation.’ So they brought a head, like the head of a cow, made of gold, and placed it down. Then the fire came and consumed it. Then Allah made the spoils permissible for us; He saw our weakness and inability, so He made them permissible for us.”