It is not for a prophet to be fraudulent; whoever defrauds [others] shall bring what he has defrauded on the Day of Resurrection; then every soul shall be paid in full what it has earned, and they shall not be wronged.
He has made the states of the prophets free of the stain of treacherous actions. “Those to whom We gave the message to bear to Our servants convey it to those who should receive it. They are not concerned with any affair of a close intimate without Our command, and they do not hold back, harboring malice, in passing on anyone's share when We have commanded it.” Do you not see how [the Prophet] said of Abū Ṭālib, “Go and bury him” when the Commander of the Believers ʿAlī (رضي الله عنه) said to him, “Your erring uncle has died”? Do you not see how [Muḥammad] accepted al-Waḥshī, the killer of ḥamza, when he became a Muslim?
It is said, “It was not for any prophet ﷺ to give Our secrets to any but the people to whom they were meant. Rather, to each was revealed what they were meant to hear.” Thus, in the tradition, “We were commanded to reveal (yunzil) to the people [what is suitable, according to] their stations (manāzil).”