Here's what I came across on Wikipedia-
About Akbar-
According to Annemarie Schimmel, the Mughal Emperor Akbar was averse to the practice of Sati; however, he expressed his admiration for "widows who wished to be cremated with their deceased husbands".[90] He was averse to abuse, and in 1582, Akbar issued an order to prevent any use of compulsion in sati.
About Aurangzeb-
Aurangzeb issued another order in 1663, states Sheikh Muhammad Ikram, after returning from Kashmir, "in all lands under Mughal control, never again should the officials allow a woman to be burnt". The Aurangzeb order, states Ikram, though not mentioned in the formal histories, is recorded in the official records of Aurangzeb's time. Although Aurangzeb's orders could be evaded with payment of bribes to officials, adds Ikram, later European travelers record that sati was not much practiced in Mughal empire, and that Sati was "very rare, except it be some Rajah's wives, that the Indian women burn at all" by the end of Aurangzeb's reign.
So basically, Akbar removed the compulsion from Sati and Aurangzeb banned it altogether.
https://en.wikipedia.org/wiki/Sati_(practice)