"Miranda rights are the rights given to people in the United States upon arrest. Anyone who has watched a U.S. detective show or two can rattle off the words: “You have the right to remain silent. Anything you say can and will be used against you in a court of law…” The speech must be recited by law enforcement officials when detaining suspects to ensure they are aware of their right to an attorney and against self-incrimination"
https://www.history.com/topics/united-states-constitution/miranda-rights
"Miranda Rights were created in 1966 as a result of the United States Supreme Court case of Miranda v. Arizona. The Miranda warning is intended to protect the suspect’s Fifth Amendment right to refuse to answer self-incriminating questions.
It is important to note that Miranda rights do not go into effect until after an arrest is made."
http://www.mirandarights.org/
"Miranda warnings inform people of their constitutional rights to remain silent and to have a lawyer present during police questioning. Police read Miranda rights after detaining someone but before beginning an interrogation (questioning)."
https://www.alllaw.com/articles/nolo/criminal/miranda-rights.html
The Miranda Rule
https://www.aclu.org/other/miranda-rule