Upvote:1
As for what I have heard in Dhamma deshana, if a person keeps such an intention in mind while meditating that person won't be able to achieve that. You need to lower your expectations to achieve such peaceful levels in meditation. Or else those extreme desires will be hunting your mind without letting you meditate in the proper way. So if you meditate with the pure intention of ending the sansara, Such things will come to you automatically.
Upvote:2
The Buddha mentioned many supernatural powers called siddhi but he did not teach them. He mentions that samadhi is required to developing siddhi but since siddi do not help to end dukkha the Buddha doesn't explain exactly how to develop siddhi.