While in jail, the queen prays to Gautama Buddha for assistance, and so he comes to her.
The queen then says that she wants to be reborn in Amitabha’s Sukhavati heaven. Gautama Buddha thus her instructions on how to be reborn in Sukhavati, and how she can thereby gain liberation from samsara (the cycle of rebirth) in the human world through faith in Amitabha.